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 IIF表达式-重载解析失败_Reporting Services - Fatal编程技术网

Reporting services IIF表达式-重载解析失败

Reporting services IIF表达式-重载解析失败,reporting-services,Reporting Services,执行以下命令时,我收到一个错误-“[BC30516]重载解析失败,因为没有可访问的'IIf'接受此数量的参数”: =iif(Lookup(Fields!OccurCode.Value,Fields!OccurCode.Value,Fields!OccurCode.Value,"TTDC_Papers") <> Fields!OccurCode.Value,"TTDC_Templates", False, True) =iif(查找(字段!oc

执行以下命令时,我收到一个错误-“[BC30516]重载解析失败,因为没有可访问的'IIf'接受此数量的参数”:

=iif(Lookup(Fields!OccurCode.Value,Fields!OccurCode.Value,Fields!OccurCode.Value,"TTDC_Papers") <> Fields!OccurCode.Value,"TTDC_Templates", False, True)
=iif(查找(字段!ocurcode.Value,字段!ocurcode.Value,字段!ocurcode.Value,“TTDC\u文件”)字段!ocurcode.Value,“TTDC\u模板”,False,True)

此选项用于根据上述语句显示/隐藏数据。任何建议都很好。

IIF需要3个参数,但你通过了4个

您必须删除“TTDC\u Templates”范围引用,或者,如果必须指定该范围,请在其上使用聚合函数,例如:首先使用
(Fields!OccurCode.Value,“TTDC\u Templates”)