Trouble Calculating Averages in a Report

Ray Stantz

Registered User.
Local time
Today, 02:44
Joined
Nov 16, 2006
Messages
63
Hello all,

I have a report where i'm trying to get an average from three fields using:

=Avg([Profile Accuracy]+[RA Accuracy]+[RC Accuracy])

However, it keeps returning the total. Any ideas?

I.e. 3.4+2.0+4.6 to give me an average of 3.33 but what i get is 10.0

Thanks in advance.

Ray
 
You don't use Avg that way. Avg will average the result of a Field over the entire column.

You should just be using:

=(Nz([Profile Accuracy],0)+Nz([RA Accuracy],0)+Nz([RC Accuracy],0))/3
 
By the way, I put the NZ in there for you to deal with possible NULLS otherwise it would not work right.
 

Users who are viewing this thread

Back
Top Bottom