# Report Builder "division by zero" **Category:** [Yahoo Archive](https://www.epiusers.help/c/yahoo-archive/9) **Created:** 2000-07-18 11:15 UTC **Views:** 372 **Replies:** 0 **URL:** https://www.epiusers.help/t/report-builder-division-by-zero/484 --- ## Post #1 by @system
Use the if statement within the calculation of the calculated field.
if(divisor=0,0,do calculation)

This should do the trick.

Rick Lane
Intelligent Systems Integration, Inc.
661B Weber Drive
Wadsworth, OH 44281
330-335-5291
Fax: 330-335-7275

"Helping business make intelligent use of technology"


-----Original Message-----

I have a question about Report Builder. (actually may be an easy question
for some? just not me.)
I have created a report including job costs. My problem is that in one of
the calculations, there is division. If we have a job that does not have
cost or a completed qty, there is division that includes a 0, therefore I
get the "?????????" error in calculation. When I do a total on a field that
has "???????" I receive the same answer "?????????????". I know in the
aggregate field I can click on Ignore Unknown or 0, but this does not work.
Is there a way to have the aggregate ignore an error?

Thank you in advance for your help,

Joy
--- **Canonical:** https://www.epiusers.help/t/report-builder-division-by-zero/484 **Original content:** https://www.epiusers.help/t/report-builder-division-by-zero/484