首页 > 解决方案 > SSRS 报告 - 总和标题 - 不在组中

问题描述

如何对下面分组行中的值求和(在标题行中)?

我想说的是下面的字段总和,而不是“性能”这个词。突出显示的字段称为:Textbox119

在此处输入图像描述

当我在上面的行中说

=sum(ReportItems!Textbox119.Value)

我收到以下错误消息:

The Value expression for the text-run Textbox... uses an aggregate function on a report item. Aggregate functions can be used only on report items contained in page headers and footers. 

如果这是添加以下行的错误方法......我该怎么做?

标签: visual-studiotsqlreporting-servicesgroup-bysum

解决方案


用鼠标右键你想合计的组字段,选择添加合计,选择之前。在新的 Total 标签旁边输入所需的聚合函数和字段名称,例如:=Count(Fields!Venue.Value)


推荐阅读