Reputation: 101
How would the following be writting in SSRS syntax?
If (( Fields!Name.Value = "Completed") or ( Fields!Name.Value = "Approved") or ( Fields!Name.Value = "Denied") or ( Fields!Name.Value = "Cancelled")) Then
Fields!Name.Value = Fields!Name.Value
ELSE
Fields!Name.Value = "Other"
END IF
Upvotes: 1
Views: 80
Reputation: 17693
Assuming you want to populate a tablix cell with the values specified, and this is your dataset:
The expression:
=IIF((Fields!Name.Value = "Completed") OR (Fields!Name.Value = "Approved") OR
(Fields!Name.Value = "Denied") OR (Fields!Name.Value = "Cancelled"),
Fields!Name.Value, "Other")
Produces this result:
Upvotes: 1