8
I am using Visual Studio to build my report and I have tried to use those three expressions:
=IIF(Fields!A.Value = 0 or Fields!B.Value = 0, 0,SUM(Fields!A.Value)/SUM(Fields!A.Value)
=IIF(SUM(Fields!A.Value) = 0 or SUM(Fields!B.Value =0),0,SUM(Fields!A.Value)/SUM(Fields!A.Value)
=Replace(Round((((SUM(Fields!A.Value)/SUM(Fields!B.Value)))*100),0),"NaN","0")+"%"
The first 2 give me only 0 as % and the last one doesnt get rid of Infinity but does get rid of NaN.
Can someone please help where I can use both these expressions together and not get only 0% and Infinity when I use either the top 2 or the last one?