How do I set the visibility of a text box in SSRS using an expression?

前端 未结 8 1365
醉酒成梦
醉酒成梦 2020-12-10 10:04

I have a subtotal field for a calculated column that I want to hide when my report has not ran yet because on days with no data it shows up as NaN on the report

相关标签:
8条回答
  • 2020-12-10 10:57

    Twood, Visibility expression is the expressions you write on how you want the "visibility" to behave. So, if you would want to hide or show the textbox, you want to write this:

    =IIf((CountRows("ScannerStatisticsData")=0),True,False)
    

    This means, if the dataset is 0, you want to hide the textbox.

    0 讨论(0)
  • 2020-12-10 11:01
    =IIf((CountRows("ScannerStatisticsData")=0),False,True)
    

    Should be replaced with

    =IIf((CountRows("ScannerStatisticsData")=0),True,False)
    

    because the Visibility expression set up the Hidden value.

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