ssrs setting column visibility on rowgroup

放肆的年华 提交于 2019-12-21 06:59:08

问题


I'm trying to hide a column but it belongs in the RowGroups area. Unfortunately, the Column Visibility is greyed out and disabled. I'd like to just hide the column under certain conditions (using expressions) but keep the grouping.

I found a similar question on SO but its solution did not work for me. Is there a workaround for this?

ssrs column visibility inside row groups

I've tried shifting some of the columns to the body area of the tablix, but then I can't merge cells vertically. I'm not sure what my options are.

In the image below, I'm trying to hide the first column but the Column Visibility option is disabled.

.

SSRS 2008 R2


回答1:


Are you trying to remove Column 1? If you right click on the column header and choose Delete Column it will prompt you to either delete column and associated groups or column only. If you choose column only the grouping should remain.




回答2:


You can choose a column and then navigate to Visibility property in the property bar. You can enter expressions there as well as just choosing true or false. However in this case it would just leave a space instead of that field.




回答3:


I had the same problem with the grayed out column visibility and the solutions I found online weren't working, so hopefully this will help someone else out.

You have to basically trick it into working. Here’s how I did it:

  1. Click on the tablix, then right click on the gray column properties thing on the column to the right of the column you’re interested in.
  2. Choose Add Group>adjacent left.
  3. In the group by field, enter False because you don’t really want it to group.
  4. Now you can right click on the gray column properties box and choose visibility.
  5. Enter your function for visibility.
  6. Now copy and paste everything you need from the ‘broken’ column where you couldn’t adjust the visibility into your new column.
  7. Delete the old column.



回答4:


in visual studio, below design box, you can find row groups & column groups, right side of column group you can find down arrow, if you click on that you will find [ advance mode] once it is opened, right click on the first row group, click group property, select visibility , click on hide

Done, Pl check




回答5:


  1. Delete the column
  2. Select the option "Delete columns only"
  3. Add a new column (without an associated row group)
  4. Assign the field to the new column

The new column will use the row group as the granularity is equal.




回答6:


On the details row group add list of column you want the data to be grouped by.



来源:https://stackoverflow.com/questions/11891704/ssrs-setting-column-visibility-on-rowgroup

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