x

Matrix Background Formatting

I'm new to SSRS. How do I format the background of the various data levels of a matrix to reflect a different color when a level is expanded or collapsed?

more ▼

asked Oct 20, 2009 at 02:42 PM in Default

avatar image

Tony
12 1 1 3

(comments are locked)
10|1200 characters needed characters left

3 answers: sort voted first

Hi Tony, I've usually employed the expression

=iif(RowNumber(Nothing) Mod 2,*Colour1*, *Colour 2*)

to achieve candystriping, so you might be able to introduce this into the InScope() expression to get this to work within the groupings.

more ▼

answered Oct 24, 2009 at 05:11 PM

avatar image

Paul
36 2 1

(comments are locked)
10|1200 characters needed characters left

Use the InScope function. Basically, you can set the background colour to be something like:

=IIF(InScope("matrix1_group1"),"Blue","Red")
more ▼

answered Oct 20, 2009 at 11:44 PM

avatar image

Rob Farley
5.8k 16 22 28

(comments are locked)
10|1200 characters needed characters left

Thanks but I need the color to alternate as well. Any ideas on how to make that happen?

Thanks

more ▼

answered Oct 21, 2009 at 02:24 PM

avatar image

Tony
12 1 1 3

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x660
x33

asked: Oct 20, 2009 at 02:42 PM

Seen: 1875 times

Last Updated: Oct 21, 2009 at 04:47 AM

Copyright 2016 Redgate Software. Privacy Policy