I've written a report on SSRS which has an initial parameter that you select from. That then shows a specific set of records from a SQL database. However, dependent on that selection I want some of the fields to show or not show in the report.
The fields are listed as Row Groups
and I've gone into the Group Properties
/ Visibility
and written the following under "show or hide based on an expression":
=IIf(Parameters!StoreType.Value = "xxxxx",true,false)
My impression was that would hide the column if what I specified was true and display it if it was false, however it's not working, it still shows that column associated with that "Group". I tried altering to "Fields" rather than "Parameters", but that has no effect either.
There are quite a few fields I would like to apply this to, but obviously I need to get one working before I roll it out to all the rest. If anyone can shed light on what I've done incorrectly/need to do differently that would be much appreciated.
Cheers,
Chris
Put your expression on column visibility instead.
Right click the cell on top of column Store Group then select Column visibility.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.