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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grand Average of Averages within Grouped Section

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a report which displays individual values grouped by date. The date footer averages the individuals scores for each date using the AVG function. For the report footer, I want to add Grand Averages which average based on the Date footer averages, not by the individual scores. How can I achieve this? Thanks in advance - John
 
Why would you want an average of the averages? Why not just an overall average of the entire data set? Anyway, you'll have to do a little slight of hand to get this. Create two hidden unbound controls on the date footer. One, we'll call intCount. Set intCount's controlsource property to =1 and it's running sum property to yes. The other one we'll call txtDateTotal. Set it's controlsource property to the same formula you have for the date footer's sum control. Set this control's running sum property to yes also. Hide both controls by setting their visible property to no. In the Report Footer add an unbound control with the following as it's controlsource:
=[txtDateTotal]/[intCount]

This should give you what you're looking for.
 
Thanks - it worked!
The reason that I wanted averages of averages is that I'm interested in displaying the dynamics of a higher unit of analysis, irrespective of the varying number of valid scores within that higher unit of analysis. So, instead of averaging across every individual score, I want to average the summary of those individuals in terms of their grouped averages over time. Thanks again for your help - John

marcuse1835@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top