Groups | Blog | Home
all groups > sql server reporting services > may 2007 >

sql server reporting services : Change Subtotal background color.


Scott Burke
5/30/2007 12:55:03 PM
I created a Matrix report with subtotals.

It would be easier to read if the subtotals were shaded.

How do I shade the subtotal box. Not the lable box.

I can see the box labled totals and it is shaded it is the real total box
that I need to shade.

Thank you
Reeves Smith
5/30/2007 1:40:03 PM
Scott,

Using the inscope() function with the names of the matrix rows you are able
to tell when the row is a subtotal or not, then place the iif function in the
background color and sometimes the font color.

If you need more help I can find my code example. Last contract have to dig
it up.

Reeves


[quoted text, click to view]
Scott Burke
5/31/2007 6:38:01 AM
Thanks for your time. However, Visual Sudioes has an error and shut down.
now the report I was working on is gone..........


I will try your suggestion when I rebuild the report
Thanks again.
Scott Burke

[quoted text, click to view]
EMartinez
5/31/2007 4:55:55 PM
On May 31, 8:38 am, Scott Burke <ScottBu...@discussions.microsoft.com>
[quoted text, click to view]


Also, you could try an expression similar to this in the background
color property:
=iif(Fields!FieldName.Value Like "subtotal*", "Yellow", "White")
Where FieldName can be from an adjacent cell.
Hope this helps.

Regards,

Enrique Martinez
Sr. Software Consultant
Scott Burke
6/1/2007 7:09:01 AM
Hi EMartinez,
I tried that but it did not work.
I tried the expression : =iif(Fields!textbox6.Value =
'Total','lightgrey','transparent')
The box next to it is named "textbox6" with a value of
"Fields!magazinename.value"

The errror is "out of scope".

I am trying to referance the box name or the contents in the box?
Scott Burke

[quoted text, click to view]
Scott Burke
6/1/2007 11:59:00 AM
OK. I found the answear. Please try NOT to laught too loud. It will hurt
my feelings.

On the totals box there is an arrow in the upper right corner. If you click
on the arrow you will get the properties of the total box itself. Click
anywhere else in the box adn you get the properties of the subtotal label box.

Have fun over the weekend.

Scott Burke

[quoted text, click to view]
Reeves Smith
6/1/2007 12:32:01 PM
Scott,

I'm not laughing as I did not even know that existed, thanks for the find.

Reeves

[quoted text, click to view]
EMartinez
6/1/2007 11:11:55 PM
On Jun 1, 1:59 pm, Scott Burke <ScottBu...@discussions.microsoft.com>
[quoted text, click to view]


Glad you solved the problem. Let me know if I can be of greater
assistance.

Regards,

Enrique Martinez
Sr. Software Consultant
AddThis Social Bookmark Button