Hide or Display column based on group visibilty expression

こ雲淡風輕ζ 提交于 2019-12-13 00:14:35

问题


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


回答1:


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.

I created a simple table with two columns.

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:

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




回答2:


Hi try with something like this

IIf(Parameters!DisplayByOrder.Value = False, True, False)


来源:https://stackoverflow.com/questions/19909254/hide-or-display-column-based-on-group-visibilty-expression

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!