Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Conditional Formating Expand / Collapse
Author
Message
Posted Friday, October 26, 2012 10:55 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, February 22, 2013 1:58 PM
Points: 5, Visits: 61
I am trying to use this code, keep getting error. Can somone please help.

=SWITCH(IIF(Fields!summary_name.Value LIKE 'CH_*' AND Fields!MY.value < 0.9850), 'RED','BLACK')

Thank You,
Post #1377745
Posted Friday, October 26, 2012 3:51 PM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Wednesday, October 8, 2014 12:00 PM
Points: 570, Visits: 483
Why are you using a switch and an IIF? Seems like you should be able to get by with just the IIF.
Post #1377888
Posted Friday, October 26, 2012 4:21 PM
UDP Broadcaster

UDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP Broadcaster

Group: General Forum Members
Last Login: Yesterday @ 11:30 AM
Points: 1,485, Visits: 1,034
=Iif(Left(Fields!summary_name.Value, 3) = "CH_" AND Fields!MY.value < 0.9850), "RED","BLACK")
Post #1377899
Posted Monday, October 29, 2012 10:23 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, February 22, 2013 1:58 PM
Points: 5, Visits: 61
Thank you for your reply, but the above statement still doesnt format the way it suppose to be.
Post #1378337
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse