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.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Problem with Switch Statement

Author  Topic 

dmaxj
Posting Yak Master

174 Posts

Posted - 2010-09-10 : 17:47:17
I get #Error when using this Switch statement:

=Switch(Fields!EligibilityStatus.Value = "","Empty",
Fields!EligibilityStatus.Value = 0, "NotEnrolled",
Fields!EligibilityStatus.Value = 1, "Enrolled")


What is wrong with this statement?

Regards

dmaxj
Posting Yak Master

174 Posts

Posted - 2010-09-15 : 10:17:11
Please help on this - I am lost as to why this above statement is not working.

The syntax is right, but the result shows #Error for 0, and 1. I only get correct result for "".

Thank you
Go to Top of Page
   

- Advertisement -