How to change label based on condition in a report?

 

IIF(First(Fields!FieldName.Value = "YourValue",

"DataSetName"),Labels!@Label1,Labels!@Label2)

 

Example: IIF(First(Fields!JournalType.Value = "Subcontract", "ClaimReportHeaderDS"),Labels!@SYS397,Labels!@SYS851)

 

About IIF : SQL Server IIF() Function (w3schools.com)

Enum’s in reports: https://robscode.onl/ssrs-use-enum-values-in-filter-expressions/

Comments