Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide Column based up Parameter Selected SSRS

I would like to set the visibility of columns based upon the value selected in a parameter.

The problem is I do not want a specific parameter to do this (i.e Hide column X True/False)

My report has several different "departments" who are only interested in certain columns.

What would be the syntax for example to hide the "Sales" column when the "Customer Care" parameter is set?

like image 388
David Adlington Avatar asked May 20 '10 09:05

David Adlington


1 Answers

you can do these works step by step:

1- press right click of your mouse in your favorite column

2- select column visibility

3- from opened window select "Show or hide based on an expression" radio button

4- set an expression for hidden state. for example:

 =IIF(Parameters!CustomerCare.Value <> "favorite value", true,false)
like image 143
masoud ramezani Avatar answered Oct 02 '22 13:10

masoud ramezani