I have a dataset I need to filter at report level - not SQL level. The column (FilterColumn) to form the filter on will return one of four values:
- ValueA
- ValueB
- ValueC
- ValueD
Records that have a FilterColumn value of ValueA should always be returned. If a run time parameter (labelled “Just show A”) is Boolean and set to false, all data should be shown.
I don’t seem to be able to get the syntax of this correct. I have tried setting the filter to have [FilterColumn] in the Expression field using the operator “IN” and then hoping to retrieve the appropriate values by specifying an expression in the Value field:
=IIf(Parameters!JustShowAOnly.Value = true, "ValueA", Choose("ValueA"," ValueB" ," ValueC"," ValueD"))
I have tried using several ways to specify the four values to match on - I have also tried using a secondary dataset and parameter to compile the four values – all to no effect.
Can someone tell me how this can/should be done please?