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

Non-zero weighted average

Status
Not open for further replies.

alwayslrN

IS-IT--Management
Jun 20, 2006
159
0
0
US
I am using Crystal XI and was wondering is using running total the only and best way to create a weighted average the does not include zero values?

The weighted average function includes zero values in the weighting and the user does not want that to happen.

Thanks
 
YOu will have to use two Running totals which only evaluate when the value is not equal to zero. One to sum and one to count. Then in summary use another formula which calculates avearge from these two RTs.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top