Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Report Builder 3 - Color Scale Fill for datafields

Author  Topic 

davsarg
Starting Member

2 Posts

Posted - 2014-03-14 : 09:10:19
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 - 2014-03-20 : 16:34:52
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
   

- Advertisement -