如何在Crystal Report中按组获取总和 [英] How to get sum by groups in Crystal Report
本文介绍了如何在Crystal Report中按组获取总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想按Crystal Reports中的组获取总和。
I want to get the sum by the groups in Crystal Reports.
Group OVERALL
-----------------
group 1
--------------
5.00
5.00
10.00
--------------
total group 1 20.00
--------------
group 2
--------------
10.00
25.00
15.00
--------------
total group 2 50.00
-------------------
Total Group OVERALL 70.00
使用此公式 sum({field.amount},{field.group})
我只获得总和的总和,而不是组1和2的总和。
Using this formula sum({field.amount}, {field.group})
I only get sum for OVERALL but not for group 1 and 2.
推荐答案
- 右键单击字段您想要求和的对象
- 选择插入->摘要,然后在同一对话框窗口中选择下面的分组依据字段
- 单击确定
这篇关于如何在Crystal Report中按组获取总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文