SSRS iif和三个数据集中的查找= #error

时间:2015-11-02 10:49:37

标签: reporting-services

我有一份报告,我希望将两列合并为一列。但是当我尝试时,我会在#error中出现日期 - 它们可以单独运行。

我该怎么做?

第1栏:

=IIf(Lookup(Fields!Chassis_No.Value, Fields!Chassis_no_.Value, Fields!Date_Performed.Value, "DataSet2") <> "01-01-1754", Lookup(Fields!Chassis_No.Value, Fields!Chassis_no_.Value, Fields!Date_Performed.Value, "DataSet2"), "")

第2栏:

=IIf(Lookup(Fields!Chassis_No.Value, Fields!Chassis_no_.Value, Fields!Date_Performed.Value, "DataSet3") <> "01-01-1754", Lookup(Fields!Chassis_No.Value, Fields!Chassis_no_.Value, Fields!Date_Performed.Value, "DataSet3"), "")

请参阅目前列的内容:

enter image description here

1 个答案:

答案 0 :(得分:0)

尝试在以下内容中使用&

=IIf(Lookup(Fields!Chassis_No.Value, Fields!Chassis_no_.Value, Fields!Date_Performed.Value, "DataSet2") <> "01-01-1754", Lookup(Fields!Chassis_No.Value, Fields!Chassis_no_.Value, Fields!Date_Performed.Value, "DataSet2"), "")
&
IIf(Lookup(Fields!Chassis_No.Value, Fields!Chassis_no_.Value, Fields!Date_Performed.Value, "DataSet3") <> "01-01-1754", Lookup(Fields!Chassis_No.Value, Fields!Chassis_no_.Value, Fields!Date_Performed.Value, "DataSet3"), "")