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
Post a Comment