Reporting services 基于另一个数据集隐藏列

Reporting services 基于另一个数据集隐藏列,reporting-services,Reporting Services,我有两个数据集 Dataset1: SystemDisplayName,CustomDisplayName,ColumnName,SourceSystemId DataSet2: EscrowDescription,EscrowNumber,EscrowDescriptionAdditional. These are the column names. 我需要根据Dataset1中的sourcesystemid值隐藏或显示Dataset2中的列 如果sourcesystemid=18,则应

我有两个数据集

Dataset1: SystemDisplayName,CustomDisplayName,ColumnName,SourceSystemId 
DataSet2: EscrowDescription,EscrowNumber,EscrowDescriptionAdditional. These are the column names. 
我需要根据Dataset1中的sourcesystemid值隐藏或显示Dataset2中的列 如果sourcesystemid=18,则应隐藏该列

IIF(LookUp(Fields!Data1.Value,Fields!Data1.Value,Fields!SourceSystemId.Value, "DataSet2") = 18)

数据集1是否总是只返回一行?是的,数据集1总是返回一行。我正在使用uniqueID在查询中查找问题所在。如果在可见性表达式中使用它,则不需要IIF子句。同时将数据集2替换为数据集1=了望台!数据1.值,字段!数据1.值,字段!SourceSystemId.Value,DataSet1=18是的,我知道了。价值是问题所在。相反,我带着身份证去了