reporting-services IF expression AND / OR IF condition

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

Sometimes a complex IF condition is needed.

Let's take and example, Assuming we have the following raw data:

ItemIDItem NameItem Status
1Item 1Tentative
1Item 1Pending
1Item 1Approved

The Goal is:

Let's assume our business user ask to see which items are not approved and which are approved. Tentative and Pending items are considered as Not Approved.

IF Condition Example:

=IIF((Fields!ItemStatus.Value = "Tentative") Or (Fields!ItemStatus.Value = "Pending")
,"Not Approved", "Approved")

The results:

enter image description here



Got any reporting-services Question?