Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Changing row colours in SSRS based on values in a specific column in that row

$
0
0

Hi Guys,

I'm working on a table report in SQL Server Reporting Services.

I've managed to get all the values in the table that I want, but now I want to tell the table that I want a row to be grey if one of the values in that row is below a specific threshold, and otherwise to just alternate between two other colours.

I've managed to get the alternating colour going with:

=IIF(RowNumber(Nothing) MOD 2,"#f6e1e1","#f7cfcf")

However, I can't figure out how to add the clause for the grey in to that as I've tried a couple of alternatives involve orelse after the grey value etc etc. but just keep getting errors.

I'm still learning SQL atm but some guidance would be really appreciated.

Cheers

Rachel


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>