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

Tony gravatar image

Tony
12 1 1 1

(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

Paul gravatar image

Paul
36

(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

Rob Farley gravatar image

Rob Farley
5.7k 16 18 20

(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

Tony gravatar image

Tony
12 1 1 1

(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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

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:

x554
x28

asked: Oct 20, 2009 at 02:42 PM

Seen: 1630 times

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