SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Switch Colour
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sz1
Constraint Violating Yak Guru

United Kingdom
355 Posts

Posted - 03/06/2013 :  09:08:17  Show Profile  Reply with Quote
Anyone know why this wont change my red colour, all other ok?

=Switch(Fields!Agreed_Solved_Date___Time.Value = DateAdd("d",0, Today()),"Red",
Fields!Agreed_Solved_Date___Time.Value >= DateAdd("d",+1, Today()),"Green",
Fields!Agreed_Solved_Date___Time.Value <=DateAdd("d",0, Today()),"Blue",
Len(Fields!Agreed_Solved_Date___Time.Value) = 0,"")

The Agreed_Solved_Date_Time field for todays tickets which there are 6 are staying black even though they are showing todays date?

Thanks in advance!


SZ1
Learning and development is the driving force in the universe...!

sz1
Constraint Violating Yak Guru

United Kingdom
355 Posts

Posted - 03/06/2013 :  09:38:59  Show Profile  Reply with Quote
This seemed to work:

=Switch(Fields!Agreed_Solved_Date___Time.Value < Today(),"Blue",Fields!Agreed_Solved_Date___Time.Value <=DateAdd("d",1,Today()),"Red",Fields!Agreed_Solved_Date___Time.Value >=DateAdd("d",0,Today()),"Green")

SZ1
Learning and development is the driving force in the universe...!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000