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

前端 未结 8 1495
醉酒成梦
醉酒成梦 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:44

    instead of this

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

    write only the expression when you want to hide

    CountRows("ScannerStatisticsData")=0
    

    or change the order of true and false places as below

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

    because the Visibility expression set up the Hidden value. that you can find above the text area as

    " Set expression for: Hidden " 
    

提交回复
热议问题