是否有一种简单的方法可以在 SSRS 公式中执行 IN 语句或类似的操作以进行 iff 语句比较,而无需重复切换 16 次?
这就是我希望在不必Fields!FieldName.Value = "01" OR Fields!FieldName.Value = "02"
为每个值编写语句或单独的 OR ie( ...etc) 的情况下完成的任务:
=iif((Fields!FieldName.Value IN
("01","02","03","06","08","09","10","12","15","19"),"TypeA",
iff((Fields!ProdCode.Value IN ("04","07","11","13","14","16"),
"TypeB","TypeC")