I couldn’t get this expression working with reporting services. I have to use IF and ELSE IF statement. Thank you for any suggestions.
= Switch( IsNothing(Fields!field_date.Value),"", Fields!set_flag.Value=1,"Declined", Fields!field_name.Value)
Here is what I am trying to do.
If(IsNothing(Fields!field_date.Value)) Then "";
ElseIf Fields!set_flag.Value=1 Then "Declined";
Else Fields!field_name.Value
Doesn’t SSRS use the VB Runtime Library? In which case, the switch statement is documented here and states that you must have an even number of elements passed in. If this is your issue, you’re probably getting an
ArgumentExceptionthrown.If you want to have a default return value, you’d have to add a dummy condition that always evaluates to true: