IIF(Field.Value)IN列出SSRS 2016中的此值

时间:2017-07-13 14:47:43

标签: reporting-services ssrs-2016

IIF(First(Fields!PID.Value, "Group_Info") IN (3444,3555,3678,3989,4005,4100), "$85"
OR IIF (First(Fields!PID.Value, "Group_Info) IN (3456,3558,3645,3859,3958,4011,4300) "$75"

有办法做到这一点吗?我知道你不能使用" IN",我只是不知道你会使用的表达方式。

1 个答案:

答案 0 :(得分:0)

试试这个:

=SWITCH(
First(Fields!PID.Value,Group_Info").Contains("3444","3555","3678","3989","4005","4100"),"$85"
,First(Fields!PID.Value,Group_Info").Contains("3456","3558","3645","3859","3958","4011","4300"),"$75"
)