Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Formatting nested category group labels in Reporting Services charts

I have 2 category groups in my SSRS chart. One is "short weekday name", the other is "hours". I want the graph to show hour-by-hour change, but I want only the "short weekday name" to be shown in the horizontal axis.

I want it to show JUST the "short weekday name", but "hours" still needs to be in the category group, I only want to hide it. Is this possible?

In advance, thanks!

like image 386
user987838 Avatar asked Dec 21 '22 07:12

user987838


2 Answers

Yep, you can kind of hack your way around this. Open the Category Group properties for your "hours" group and go to the "General" tab. In the "Label" field, click "Expression" and enter:

=Nothing

This should prevent the field values from appearing as labels on the x-axis. If you want to tidy up further, you can go into the x-axis properties and disable major and minor tick marks. You'll be left with your outer Category group having brackets on the chart, but it's a minor gripe.

This worked for me on SSRS 2008 R2.

like image 156
GShenanigan Avatar answered Dec 27 '22 06:12

GShenanigan


As an enhancement to GShenanigan answer if instead you set the short weekday name group to =nothing then the category brackets will disappear.

If you then set the label of the hours group to = short weekday name, it should look exactly as you want it.

like image 39
Davethebfg Avatar answered Dec 27 '22 04:12

Davethebfg