on 2009 May 26 3:47 PM
I am trying to get an average of employee expenses. Some of the lines have a 0 amount. When I use the Summary function the 0 lines are included in the average. How do I exclude these? Example:
0
100
0
0
0
100
0
0
Average is 25 with the 0 lines. The average should be 100.
Thanks,
Rick
Try using running total based on the condition <>0 and select average in the field to summarize.
Regards,
Raghavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is it necessary to show employees with 0 expenses? if not use a records selection to get rid of the employees with a 0 value
or
do a sum summary on the employee expense so you will get 200 by your example
Create a formula that looks for amount that are greater than 0
Counter
if amount is <> 0 then
1
else
0
now do sum summary on the counter field which will give you 2 by your example.
now in another formula get your average
if sum summary on the counter field <> 0 then
sum summary on the employee expense / sum summary on the counter field
User | Count |
---|---|
69 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.