Report Builder - 使用 switch 检查多个值的条件

Report Builder - Check condition with multiple values using switch

有没有办法在报表生成器中使用 switch 检查多个值?

`我能行 :

Switch(
       Fields!parentclass.Value = 522,(Fields!Score.Value/21),
       Fields!parentclass.Value =4602,(Fields!Score.Value/2)
)

我想做

Switch(
       Fields!parentclass.Value = 522,(Fields!Score.Value/21),
       Fields!parentclass.Value =4602,(Fields!Score.Value/2),
       Fields!parentclass.Value ="3969,3967,586,3968",(Fields!Score.Value/22)
)

是否可以在不使用多个 "OR".

的情况下这样做

提前致谢

试试这个:

=Switch(
Fields!parentclass.Value = 522,(Fields!Score.Value/21),
Fields!parentclass.Value =4602,(Fields!Score.Value/2),
Array.IndexOf(Split("3969,3967,586,3968",","),CStr(Fields!parentclass.Value))>=0,(Fields!Score.Value/22)
)

如果这对你有帮助,请告诉我。