我有一个 SSRS 2008 R2 报告,它在表中使用此表达式:
=Lookup(Fields!DataSet1Date.Value, Fields!DataSet2Date.Value, Fields!DataSet2Price.Value, "DataSet2")
我有 2 个数据集,并且正在使用 Lookup 函数根据另一个数据集中的日期从一个数据集中获取数据。
我的问题是这适用于我尝试过的机器,但其他人却遇到这样的错误:
Error 1 [rsFieldReference] The Value expression for the text box ‘Col_D2Price’ refers to the field ‘DataSet2Date’. Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope.
Error 2 [rsFieldReference] The Value expression for the text box ‘Col_D2Price’ refers to the field ‘DataSet2Price’. Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope.
我们还能做些什么来解决这个问题?我们都使用相同的 2008R2 版本。