Does the iif function compute both paths in SSRS or is it short-circuited?

You’re right, it doesn’t short circuit. That sucks.

You’ll have to do something like this:

= Iif(KgSold = 0, 0, Revenue) / Iif(KgSold = 0, 1, KgSold )

The switch function should also work.

Leave a Comment