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)
 Report Builder 3 - Color Scale Fill for datafields
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

davsarg
Starting Member

United Kingdom
2 Posts

Posted - 03/14/2014 :  09:10:19  Show Profile  Reply with Quote
Hi,
I'm fairly new to Report Builder so I hope you'll be patient with me!

In Excel It's quite easy, using conditional formatting, to apply a color scale fill for a column of values where the smallest value for example is colored in red graduating up to green for the highest value, with varying shades of red, orange, yellow and green in between depending on the value. My question therefore please is, can a similar method be applied to a data column in Report Builder?

Thanks very much in advance for your help.

allan8964
Posting Yak Master

249 Posts

Posted - 03/20/2014 :  16:34:52  Show Profile  Reply with Quote
Not that fancy but you still can use some functions to set this.
=IIF(RowNumber(Nothing) Mod 2, "White", "Lightblue") is for alternative background color setting but the key is IIF() function. Go to the cell and find Fill, open Expression button and type

=IIF(your calculation on numbers formula, "red", IIF(formula, "green", "blue")) ...

you can embed more IIF() ...
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.06 seconds. Powered By: Snitz Forums 2000