Reporting Services - hide table column based upon report parameter

后端 未结 8 1332
旧时难觅i
旧时难觅i 2021-01-04 13:45

I have a report in Reporting Services 2005, and I want to hide or show a single table column based upon a report parameter. Does anyone have any idea how to do that?

<
相关标签:
8条回答
  • 2021-01-04 14:28

    To make a null column disappear,

    Right-Click column to select Column Visibility, then Set expression for Hidden:

    IIF(IsNothing(Fields!FieldName.Value),True,False)
    
    0 讨论(0)
  • 2021-01-04 14:29

    For some of my reports I've set the Visibility (Specifically the Hidden property) for the column to:

    =IsNothing(Fields!Site.Value)
    

    Note that this only works if the relevant field can be null in the underlying dataset, otherwise you will see the blank column.

    0 讨论(0)
提交回复
热议问题