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

Iff statement results in #Error

$
0
0

This formula results in an error when the first value is true, otherwise it works fine.  If the budget_quanty > 0 then it works just fine. What am I missing? I am trying to calculate the percent of budget to actual.  This is used as an expression in a total field.

Thanks,

Trish

=iif(Sum(Fields!BUDGET_QTY.Value) = 0, 1,

iif(Sum(Fields!ACTUAL_COSTING_QTY.Value) = 0, 0,

Sum(Fields!ACTUAL_COSTING_QTY.Value) / Sum(Fields!BUDGET_QTY.Value)))


Trish Leppa


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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