Reputation: 293
I have SSRS report that has around 80+ columns. I have requirement where in dynamically hide\show columns in report based on user selection. I could able to do it by setting expression for "Visiblity" property and having report parameter thro' which columns to display can be choosen.
My problem is 2 points
fox example if columns 2 and 4 to be hidden, then there is an empty column between 1 and 3 and 5 columns. How to avoid this
When i export to PDF / Excel these spaces prevail.
Let me know your suggestions / help.
Upvotes: 0
Views: 509
Reputation: 293
Actually I solved my issue with following URL http://bhushan.extreme-advice.com/conditionally-setting-column-visibility-in-ssrs/
Upvotes: 0
Reputation: 1
You can create a query that pivots your data, so that instead of a return table like this:
You could format it like this
And then your first column (ColumnName) would always be your title, and you could use it as your column group. You might have to use a dynamic query for this, but it would take care of both items 1 and 2 in your question.
Upvotes: 0