[英]How to apply multiparameter to ssrs report filter
我有一个大师,可以使用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)))
您是否只想检查一个值?
我通常会分别检查每个参数,以便它一次使用所有参数。 尽管在某些情况下您的理论就是您想要的。
如果要评估所有参数,只需将它们添加到数据集,表或组的FILTER中。 在表达式中选择字段,在值中选择参数 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.