Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 20764

How to alternate row color with multiple groups?

$
0
0

I have a report which has threee (3) row groups: Region, City, Type. I need to alternate each row color frow Gainsboro to White and am having no luck. I use the following expression for background color property for "type" row group (which I found while googling, but this DOES NOT WORK):

=iif(inscope("type"),iif(rownumber(nothing) mod 2 = 0, "Gainsboro", "White"),"White")

A sample of my report:

Region 1 (region group)  ----- Background color=WHITE

 Dallas TX (City group)    ----- Background color=GAINSBORO

     Medical (Type group)   ----- Background color=WHITE

     Surgery (Type group)   ----- Background color=GAINSBORO

 San Antonio (City group)   ----- Background color=WHITE

    Surgery (Type group)    ----- Background color=GAINSBORO

etc.

Will somebody please create a background expression (and what row would I place it on) so each backgroup row alternates colors between Gainsboro and White?

Thanks.

Dave


Viewing all articles
Browse latest Browse all 20764


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