I'm using SSRS 2005 to produce a report, and one of the columns in my report is a simple mean calculation. I don't want to divide by zero, so for the textbox value I have put:
=Switch(Fields!Count.Value=0,0,Fields!Count.Value>0,Fields!Sum.Value/Fields!Count.Value)
This still evaluates the second expression.
And so does:
=IIF(Fields!Count.Value=0,0,Fields!Sum.Value/Fields!Count.Value)
I don't want my report to display errors. How can I overcome this issue?