reporting services - Convert Crystal Reports formula to SSRS expression -


if {field_a} = 0 0 else (({field_b} / {field_a})*100) 

i trying convert formula ssrs expression. have tried many different =iff statements, cannot seem run correctly.

almost duplicate question: if search here #error ssrs iif you'll plenty of results, such does iif function compute both paths in ssrs or short-circuited?

rewriting statement straightforward then:

=iif(    fields!field_a.value = 0,    0,    fields!field_b.value /    iif( fields!field_a.value = 0, 1, fields!field_a.value) * 100 ) 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -