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!

Average Excluding Zero

Status
Not open for further replies.

newbie0423

IS-IT--Management
Oct 29, 2012
103
US
Hello
When doing a running average or just average it there a way to exclude 0's that are in details..
I have a report that I am summing the number of rooms that are running. For every hour it either counts it as a 1 if there was a case for that hour or a 0 if there was not. At the group footer I have the sum. I would like to average that sum without including the 0's. I have tried using a running total summing the field and evaluating with a formula (see below)but this doesn't seem to be working as it returning the total and not the average. What am I doing wrong, please help. Using Crystal XI

not (
isnull({@4-5hour}) or
{@4-5hour} = 0
)




Thank you
V
 
I think you are almost there. Just swap the two formulas around. Move the one you say is in the GF to the RF and vice versa.

Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top