Hi I am having trouble running the following Nested if statement in an SSRS expression
= SUM(IIF(UCASE(TRIM(Fields!UOP.Value))="Y", IIF(UCASE(TRIM(Fields!HED.Value))="Y",
IIF(UCASE(TRIM(Fields!FROMB.Value))="RED",
IIF(UCASE(TRIM(Fields!TOB.Value))="BLUE",1,0),0),0))
Not sure if my parentheses are in the right position or not....
Basically I want to find a sum total of the expression only if all if statements are true and has the above values else not.