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 如何将多参数应用于ssrs报告过滤器_Reporting Services - Fatal编程技术网

Reporting services 如何将多参数应用于ssrs报告过滤器

Reporting services 如何将多参数应用于ssrs报告过滤器,reporting-services,Reporting Services,我有一个主机,可以使用4个不同的参数进行过滤。我使用iif语句连接所有参数以过滤报告 我现在遇到的问题是,当选择多个参数时,它倾向于返回第一个参数的值,而不是所有参数的值 我的参数表达式如下所示: 表情 iif(IsNothing(Parameters!Div.Value)=0,Parameters!Div.Value ,iif(isnothing(Parameters!St.Value)=0,Parameters!St.Value ,iif(isnothing(Parameters!Sp.V

我有一个主机,可以使用4个不同的参数进行过滤。我使用iif语句连接所有参数以过滤报告

我现在遇到的问题是,当选择多个参数时,它倾向于返回第一个参数的值,而不是所有参数的值 我的参数表达式如下所示:

表情

 iif(IsNothing(Parameters!Div.Value)=0,Parameters!Div.Value
,iif(isnothing(Parameters!St.Value)=0,Parameters!St.Value
,iif(isnothing(Parameters!Sp.Value)=0,Parameters!Sp.Value
,Parameters!Hc.Value)))
价值观

=iif(IsNothing(Parameters!Div.Value)=0,Parameters!Div.Value
,iif(isnothing(Parameters!St.Value)=0,Parameters!St.Value
,iif(isnothing(Parameters!Sp.Value)=0,Parameters!Sp.Value
,Parameters!Hc.Value)))

任何帮助都是有帮助的

我想你想做的是这样的:

=IIF(NOT ISNOTHING(Parameters!Div.Value), Parameters!Div.Value,
 IIF(NOT ISNOTHING(Parameters!St.Value), Parameters!St.Value,
 IIF(NOT ISNOTHING(Parameters!Sp.Value), Parameters!Sp.Value,
 Parameters!Hc.Value)))
是否只想检查一个值

我通常单独检查每个参数,以便它一次使用所有参数。尽管在某些情况下,你的理论是你想要的

如果要计算所有参数,只需将它们添加到数据集、表或组的筛选器中即可。在表达式中选择字段,在值中选择参数


我希望根据所选参数筛选报告。目前,即使选择了多个参数,它也只返回第一个参数的值。