Toggle navigation
ReportBuilder Support Forums
Categories
Discussions
Activity
Sign In
Home
›
General
ReportBuilder 22.06 now available including Delphi 12.2 support!
New Blog Posts: Merging Reports -
Part 1
and
Part 2
DBCalc Average function help
rbuser
January 2003
edited January 2003
in
General
I want to get the average of a field, but I want to exclude 0's in the
calculation.
Is there an easy way of doing this, or do I have to use a sum and count
where filed not = 0?
Thanks for an help.
Comments
digitalmetaphors
January 2003
edited January 2003
You'll have to use a TppVariable and its OnCalc event handler to perform the
calculation to not use zeros. Here is an example that uses variables to
calculate group based percentages using variables to get you started.
http://www.digital-metaphors.com/tips/PercentageOfGroupTotal.zip
Cheers,
Jim Bennett
Digital Metaphors
Digital Metaphors Corporation
http://www.digital-metaphors.com
info@digital-metaphors.com
This discussion has been closed.
Comments
calculation to not use zeros. Here is an example that uses variables to
calculate group based percentages using variables to get you started.
http://www.digital-metaphors.com/tips/PercentageOfGroupTotal.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com