我试图在TExtbox中汇总SSRS 2017中的不同价值 并得到此错误。我是SSRS的新手,所以请任何人帮助我
The Value expression for the text box ‘Textbox14’ uses an aggregate
expression without a scope. A scope is required for all aggregates used
outside of a data region unless the report contains exactly one dataset.
我的表情是
=sum(Max(Fields!NumberPopuDefult.Value, "DataSet1"))
我也尝试过这个表达式
=sum(Max(Fields!NumberPopuDefult.Value), "DataSet1")
遇到相同的错误
如果有人知道我错了。
答案 0 :(得分:0)
您的“ DataSet1”需要选择一个不同的NumberPopuDefult子句,然后将表达式修改为= sum(Fields!NumberPopuDefult.Value,“ DataSet1”)
答案 1 :(得分:0)
所有汇总都必须具有作用域。
我看到2个总计:最大和总计。我看到1个范围:“ Dataset1”。我怀疑您缺少另一个作用域。
因此语法可能类似于:
=sum(Max(Fields!NumberPopuDefult.Value, "DataSet1"), "DataSet1")
否则,您也可以尝试摆脱一种聚合...