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
Ssrs 2008 SSRS现场范围问题_Ssrs 2008_Reporting Services - Fatal编程技术网

Ssrs 2008 SSRS现场范围问题

Ssrs 2008 SSRS现场范围问题,ssrs-2008,reporting-services,Ssrs 2008,Reporting Services,我有一份SSRS 2008 R2报告,在表中使用了以下表达式: =Lookup(Fields!DataSet1Date.Value, Fields!DataSet2Date.Value, Fields!DataSet2Price.Value, "DataSet2") 我有两个数据集,正在使用Lookup函数根据另一个数据集中的日期从一个数据集中获取数据 我的问题是,这在我尝试过的机器上可以工作,但其他机器会出现如下错误: Error 1 [rsFieldReference] T

我有一份SSRS 2008 R2报告,在表中使用了以下表达式:

=Lookup(Fields!DataSet1Date.Value, Fields!DataSet2Date.Value, Fields!DataSet2Price.Value, "DataSet2")
我有两个数据集,正在使用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版本。

在使用
查找功能时,我经常会遇到这种“幻影”错误。我称之为幻影,因为我在哪里可以找到原因,但你有错误弹出

在我的例子中,绕过它的唯一方法是使用辅助函数

希望我能帮上忙

编辑:

此外,你引起了我的兴趣,所以我做了一些研究:

  • lookup
    功能仅适用于1对1关系
  • loopupset
    功能用于一对多关系
  • multilookup
    函数用于许多1对1关系,即第二个数据集中只有1个值的单个值数组。不相关但很有趣

  • 我还遇到了一个潜在的解决方案。这是在新机器上尝试打开报告中的数据集,并刷新对话框中的所有字段。由于某些原因,这可能会将字段重新链接到此表达式。想想看……Blockquote

    您需要告诉我们更多关于这些机器之间的差异。它们引用同一个数据库吗?他们得到的数据完全相同吗?参数是否完全相同?一个可能是开发pc,另一个是真正的服务器吗?另外,给出这个问题的报告有多复杂?你试过做一个很小的复制吗?也许报告中有些地方不太好。你解决这个问题了吗?非常感谢!现在也许你能帮上忙?