Report Footer Average Function (1 Viewer)

Eljefegeneo

Still trying to learn
Local time
Yesterday, 22:50
Joined
Jan 10, 2011
Messages
904
I have a report that counts the number of monthly calls. What I would like is an average of the monthly calls in the report footer. My total for a particular month is =Count([Date]) and I named the unbound control MonthlyTotal. This is in the DateFooter section of the report. I then put an unbound control in the report footer and used the expression = Avg([MonthlyTotal]). Of course when I changed from design view to report view, it asked me for an input of [MonthlyTotal]. I then tried =Avg([Reports]![qryLetterWritersbyDate]![MonthlyTotal]) and while it didn’t ask me for an input, there was nothing in the ubound control in the report footer. I have search for an answer, but all I find is using a query.
[FONT=&quot]Is what I am attempting to do possible? If so, how? Thanks[/FONT]
 

vbaInet

AWF VIP
Local time
Today, 06:50
Joined
Jan 22, 2010
Messages
26,374
You can't use domain aggregate functions (like Avg) to calculate on values that are not in the record source.

Perform the MonthlyTotal calculation in the record source (i.e. query) of your report and use that field to get the Avg in your report. Otherwise use DAvg().
 

Eljefegeneo

Still trying to learn
Local time
Yesterday, 22:50
Joined
Jan 10, 2011
Messages
904
Thank you. Fortunately I only beat my head against a wall for an hour on this.
 

Eljefegeneo

Still trying to learn
Local time
Yesterday, 22:50
Joined
Jan 10, 2011
Messages
904
No. just frustrating. I took your advice, did it in a query and guess what, too me about 5 minutes and it was solved.
 

Users who are viewing this thread

Top Bottom