SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Fill Backgrpund color in SSRS


Fill Backgrpund color in SSRS

Author
Message
Kaniguan_SQL
Kaniguan_SQL
SSC-Enthusiastic
SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)

Group: General Forum Members
Points: 109 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
Attachments
untitled.JPG (12 views, 16.00 KB)
SQLRNNR
SQLRNNR
SSC Guru
SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)

Group: General Forum Members
Points: 67543 Visits: 18570
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

Kaniguan_SQL
Kaniguan_SQL
SSC-Enthusiastic
SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)SSC-Enthusiastic (109 reputation)

Group: General Forum Members
Points: 109 Visits: 101
This is what i do and its working.

=IIF(SUM(IIF(Fields!RESULT.Value LIKE "CHECK*",1,0), "DataSet2")>0,"Red","Green")
tespafford
tespafford
SSC Rookie
SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)

Group: General Forum Members
Points: 27 Visits: 44
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")

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search