Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services 报表生成器-使用开关检查具有多个值的条件_Reporting Services_Reportbuilder3.0 - Fatal编程技术网

Reporting services 报表生成器-使用开关检查具有多个值的条件

Reporting services 报表生成器-使用开关检查具有多个值的条件,reporting-services,reportbuilder3.0,Reporting Services,Reportbuilder3.0,是否有方法在报表生成器中使用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),

是否有方法在报表生成器中使用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)
)
甚至不使用多个“或”也可以这样做吗

提前感谢

试试这个:

=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)
)
如果这对您有帮助,请告诉我。

试试这个:

=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)
)

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

谢谢编辑@alejandro谢谢编辑@alejandro