Set a table's visibility to false when it has no rows (in reporting services)

前端 未结 2 501
鱼传尺愫
鱼传尺愫 2021-01-31 14:30

Is there a way to set a table\'s visibility to false, if the table has no rows?

I want to hide a table in Reporting Services when it has no rows.

<
相关标签:
2条回答
  • 2021-01-31 14:57

    Try setting the table's "Visibility.Hidden" property to this expression:

    =CountRows() = 0
    
    0 讨论(0)
  • 2021-01-31 15:07

    Found the answer on my own, it's pretty simple.

    I found this article which mentions the CountRows() function.

    So to set the Visibilty / Hidden property to hide when there are no rows, it's simply

    = Iif (CountRows() > 0, false, true)
    
    0 讨论(0)
提交回复
热议问题