Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to add a total Section to a report 1

Status
Not open for further replies.

psperry2

Programmer
Nov 7, 2007
141
US
I have a report that lists Name, startdate, enddate, elapsed days. I need a new section on the report where I can show the average of the Elapsed_days. I currently have a Page Header, detail and page footer section.
 
I now have a total section, but I am not sure how to get an average for the Elapsed_Days column.
 
I have got the SUM(Elapsed_Days)

What I need now is to count the number of records on the report and divide the SUM by the count to get the average.

How can I get the count?
 
I answered my own question, Someone give me a STAR!

=Sum([Elapsed_Days])/Count([Elapsed_Days])
 
there you go...


Ian Mayor (UK)
Program Error
If people say I have bad breath, then why do they continue to ask me questions and expect me to answer them?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top