Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

SSRS Challenge: Toggle column visibility

$
0
0
Say I have a simple table in my database. it has just four columns:[code="sql"]foo, bar, foe, fum[/code]Say that the data is grouped on foo, and that column fum is a dollar amount I want to sum. Columns bar and foe have a 1x1 correspondence with column foo and are not grouped under foe (no sense in that, given the 1x1 correspondence). Further, say that I don't want to see columns bar and foe in the initial display. that is, when I run the report at first, I see just two columns:[code]foo fumabc $100.00[/code]What I want to do is set up the report so that, when presented with the initial view, I can click on an item in the foo column (e.g. 'abc') and [i]then[/i] see all four columns:[code]foo bar foe fumabc more stuff still more stuff $100.00[/code]In other words, I want columns bar and foe to be hidden in the report until I click on a item under foo, whereupon they would be revealed, then hidden again if I again click on foo. So, in essesnce, foo acts as a toggle for the visibility of columns bar and foe. I can't figure out how do to this. So....can it be done, and if so, how?

Viewing all articles
Browse latest Browse all 2791

Trending Articles