reporting services - NaN SSRS Expression Fix -


i'm working on ssrs report , keep getting nan value when i'm doing divide here. how can replace nan 0 in statement?

=fields!whse_qty.value/fields!total_qty_sales.value 

you need careful due lack of short circuiting in iif statement.

something like:

=iif(fields!total_qty_sales.value = 0, 0, fields!whse_qty.value)   / iif(fields!total_qty_sales.value = 0, 1, fields!total_qty_sales.value) 

should job.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -