水晶报表报表页脚问题?
每个组都有一个名为“总成本”的字段(在本例中为“部门”)。我在每个组的组页脚中总结了该字段“总成本”的各个值,这给出了总成本现在我想用报告中的部门名称(即组名称)和总计(该组的总成本字段的总和)来总结报告。 有人可以提供一些示例代码吗? 提前致谢。
There is a field called "Total cost" for each Group(which is Dept in this case).I have summed up the individual values of this field "Total Cost" in the group footer for each group, which give me aggregate total cost of each group at the group footer .Now I want to summarize the report with just Dept name i.e group name and the aggregate total (sum of total cost field of that group) in the report.
Could anyone please furnish some sample code?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您想要的是报告页脚中的组摘要,即您想在报告末尾显示所有部门名称以及该部门的总成本 - 对吗? AFAIK,实现此目的的唯一方法是在报告页脚中使用子报告。
您可以为子报告使用相同的查询/数据集,具有相同的组,但没有详细信息部分,只有组摘要字段,并且组上没有分页符。另一种方法是使用不同的查询来提供汇总输出(即在数据库级别进行分组)。
I believe what you want is group summary in report footer i.e. you want to display all department names along with total cost for the department at the end of report - right? AFAIK, only way to achieve this would be to use a sub-report in the report footer.
You may use the same query/dataset for your sub-report, have same group(s) but no details section, only group summary fields and no page-breaks on groups. Alternate way is to use different query that would give the summarized output (i.e. grouping at database level).