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

Fill Backgrpund color in SSRS Expand / Collapse
Author
Message
Posted Tuesday, March 12, 2013 8:26 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, September 16, 2013 3:34 AM
Points: 37, Visits: 101

Hi guys,

I have a requirements to change the fill background color of my report title in SSRS.
in my dataset "OpenRAW" i have a field name RESULT.
Under Result fieldname, it contains data "OK" and "CHECK-100" or "CHECK"
I have to evaluate if there is a word or it contains "CHECK-100" or "CHECK" in the RESULT field. then i will change the default fill background color of my report header into Red color.

I'm doing this to heads up the user. once the fill back ground color turns into REd meaning they need to check the report because there are some items with "CHECK" in the result. Users no need to check all the rows in the report.

Sample:

OPEN ORDER ---Report title ( change the fill background color)
RunDate: 3/13/2013

ITEMID--PURCHID--QTY--DATE--RESULT--------(Column header)
----------------------------------------------------
HTC11--222222---2----3/13/13--OK
HTC22--333333---3----3/12/13--CHECK
HTC33--444444---4----3/10/13--OK

THank you in advance.


-jov


  Post Attachments 
untitled.JPG (6 views, 16.40 KB)
Post #1430187
Posted Tuesday, March 12, 2013 11:26 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 8:18 PM
Points: 17,824, Visits: 15,756
This is essentially the syntax you will need to use
=IIF(Fields!Column.Value = "Check", "Red", "No Color")




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #1430216
Posted Wednesday, March 13, 2013 8:03 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, September 16, 2013 3:34 AM
Points: 37, Visits: 101
This is what i do and its working.

=IIF(SUM(IIF(Fields!RESULT.Value LIKE "CHECK*",1,0), "DataSet2")>0,"Red","Green")
Post #1430711
Posted Thursday, March 14, 2013 6:55 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, May 30, 2013 11:22 AM
Points: 3, Visits: 25
I have one that displays green if an SLA is 80% or above, Red otherwise in text box fill property

=IIf((Sum(Fields!ID.Value, "TotalCount")-Sum(Fields!Over.Value, "OverKPICount"))/(Sum(Fields!ID.Value, "TotalCount")) > Parameters!SLA.Value/100,"GreenYellow","Red")
Post #1430932
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse