Comments and answers for "Divide by zero error - SSRS"
https://ask.sqlservercentral.com/questions/134849/divide-by-zero-error-ssrs.html
The latest comments and answers for the question "Divide by zero error - SSRS"Answer by erlokeshsharma08
https://ask.sqlservercentral.com/answers/134864/view.html
These are some steps you can follow:-
1. Remove the denominator part and check if you a value or an error.
2. If denominator is the cause than you need to add a condition and that is
=iif( sum(denominator) > 0,sum(numerator)/sum(denominator), 0)
Baicaly before calculating the expression, check whether the denominator is not equal to 0 or null, so that you don't get a resultant value like numerator/null or numerator/0
Thanks
LokeshMon, 02 Nov 2015 12:10:48 GMTerlokeshsharma08Comment by wolfeste
https://ask.sqlservercentral.com/comments/134850/view.html
I would be fine with setting the value to 0 instead of #error. I tried using IIF(IsNothing) but that doesn't seem to work.Sat, 31 Oct 2015 11:49:07 GMTwolfeste