Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

SSRS Expression for Conditional Filtering using the "IN" operator

$
0
0

Hello,

I need to filter my dataset based on a parameter:

If Period= 1 then Week must be in (W1, W2, W3),  Else Week must be in (W10, W20, W30)

I tried using the "IN" operator but don't know how to create the expression for the "Value" field. I tried the following:

iif(Parameters!Period.Value = 1, "W1, W2, W3","W10, W20, W30")

But it doesn't work.

Expression: Week

Operator: IN

Value: ???

Any help would be highly appreciated!



Viewing all articles
Browse latest Browse all 10045

Trending Articles