Hi everyone,
When I have a report parameter which is a toggle on or off which meant to hide some rows, can I use a Switch expression in its Row groups Visibility property.
Something like this :
=Switch(
Parameters!DataSet1_inclDetailPaym.Value <> "Yes" and Fields!LineType.Value = "L2_Detail", True,
Parameters!DataSet1_inclOtherPaym.Value <> "Yes" and Fields!LineType.Value = "L3_Other", True,
Parameters!DataSet1_inclRefund.Value <> "Yes" and Fields!LineType.Value = "L4_Refund", True,
False)
So DataSet1_incl.... is my report parameter that toggle on or off, and that Fields!LineType is my field that chosen as the Row Groups. And in its Visibility property, I put the expression like the above. The intention is, when the parameter is off (No) and the current Field!LineType of the current row is the specific word, the row with that LineType is hidden (True), else is hidden = False
No error in that expression, but during run, it says something wrong with my report.
Need help.
Thanks