我正在构建一个使用两个数据集的报告.当我预览时,我发现这些类型的错误……
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要采取哪一行(最大等)或对数据集执行的计算(平均等)