sql-server-2008 – Sql Server 2008 Reporting Services:使用两个数据集错误

前端之家收集整理的这篇文章主要介绍了sql-server-2008 – Sql Server 2008 Reporting Services:使用两个数据集错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在构建一个使用两个数据集的报告.当我预览时,我发现这些类型的错误……

Error 19
[rsFieldReferenceAmbiguous]
The Value expression for the text Box ‘TextBox3’ refers directly to the field ‘PerZipCode’ without specifying a dataset aggregate. When the report contains multiple datasets,field references outside of a data region must be contained within aggregate functions which specify a dataset scope.

需要什么聚合函数以及在哪里设置此选项?

解决方法

最小值或最大值或平均值等:大部分为 these

需要聚合将其他DataSet减少为一个值(最大值等),因为您使用的不是本地范围内的东西(例如绑定到数据区域的DataSet).无法将其他DataSet中的行与本地范围DataSet进行匹配.

如果您的文本框是独立的(不在数据区域中),则同样适用:需要聚合来告诉SSRS要采取哪一行(最大等)或对数据集执行的计算(平均等)

原文链接:https://www.f2er.com/mssql/77690.html

猜你在找的MsSQL相关文章