Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Divide by zero error

$
0
0

I have SSRS 2012 and have a report with an expression shown below.  I am getting an error of "[rsRuntimeErrorInExpression] The Value expression for the textrun ‘Textbox133.Paragraphs[0].TextRuns[0]’ contains an error: Attempted to divide by zero."

Textbox 133 has an expression as shown below and I cannot figure out why I get the error because I thought the IIF would bypass divide by zero. Thanks.

=IIF(Sum(Fields!PriorQty.Value) = 0.0, 1,(Sum(Fields!CurrentQty.Value) - Sum(Fields!PriorQty.Value)) / Sum(Fields!PriorQty.Value))


Viewing all articles
Browse latest Browse all 10045


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>