Recently I've encountered an inconsistency with the use of IIF() function in SSRS. I am working on an aggregate function with multiple conditions. Suppose I have this code:
=Sum(IIF(Fields!MATL_STAT.Value="Disposed", Fields!MATL_SIZE.Value,0))
By description, the expression determines the sum of the sizes of the MATL with a MATL_STAT = "Disposed"
but everytime I run the report there is an #Error.
My theory is that you can't put fields in the "true option" of IIF() function.
Now, if my theory is correct, is there a workaround for this?
NVL()
function. btw, I use Oracle. – Christian MarkCDbl()
function. – Christian Mark