Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hello,I have a field on my SRS Report called new_Region. I prompt the user to enter a value from 1-4. I need the new_Region field on my report to display the text below.1 means "West"2 means "Central"3 means "East"4 means "Atlantic"So I tried creating this IIF statement, but I don't knowhow to group it so that it works properly. Right now I'mgetting a #Error displaying in the field.IIF (Fields!new_Region.Value=1, "West", "")IIF (Fields!new_Region.Value=2, "Central", "")IIF (Fields!new_Region.Value=3, "East", "")IIF (Fields!new_Region.Value=4, "Atlantic", "")Thanks
visakh16
Very Important crosS Applying yaK Herder
52326 Posts
Posted - 2008-02-09 : 10:33:42
Use Switch function to achieve this. This function is available in expression window of reoporting services.