NETFOCUS
asked on
Evaluate iif in a MAtrix
Does anyone know why this IIF statement only evaluates once when it is in a Matrix but works ok outside the matrix ?
=IIF(LTRIM(RTRIM(Fields!US ERDEF1.Val ue)) <> ("OTHER")
AND (LTRIM(RTRIM(Fields!USERDE F1.Value)) <> "KEY ACCOUNT" AND SUM(Fields!ID0_3_MTHS.Valu e) >0 )
,Fields!NoinGroup.Value, SUM(Fields!ID0_3_MTHS.Valu e))
=IIF(LTRIM(RTRIM(Fields!US
AND (LTRIM(RTRIM(Fields!USERDE
,Fields!NoinGroup.Value, SUM(Fields!ID0_3_MTHS.Valu
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Making this change worked.
Open in new window
Now you're only showing the sum if it's <= 0. I you need further help please provide a small sample of your data, the layout of your matrix, the desired result and the version of SQL Server.