Hide or Display column based on group visibilty ex

2019-08-09 14:43发布

Currently working on an SSRS report in which there is a parameter "Display by Order" set to false as default. Within the body of the report, I would like to set the group expression to display the Column order if Parameter "Display by Order" is true otherwise do not display the column. I am unsure what the expression would be for this. Help would be greatly appreciated.

Thanks

2条回答
该账号已被封号
2楼-- · 2019-08-09 15:27

The Hidden expression for the Column Visibility should be something like:

=Not Parameters!DisplayByOrder.Value

This just flips the parameter value, i.e. if the user selects True, the Hidden property should be False.

More details as requested

Add a Boolean parameter called DisplayByOrder.

enter image description here

I created a simple table with two columns.

enter image description here

Set the Column Visibility for the second column by right-clicking the top of the column to bring up its properties, then using the above expression:

enter image description here

enter image description here

enter image description here

Now the column is hidden/shown by the parameter selection as required:

enter image description here

enter image description here

查看更多
我想做一个坏孩纸
3楼-- · 2019-08-09 15:31

Hi try with something like this

IIf(Parameters!DisplayByOrder.Value = False, True, False)
查看更多
登录 后发表回答