如何在Crystal Report中按组获取总和

时间:2015-12-17 11:28:22

标签: crystal-reports summary

我希望得到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})我只获得OVERALL的总和,但不能获得第1组和第2组。

1 个答案:

答案 0 :(得分:1)

  1. 您想要汇总的右键字段
  2. 选择插入 - >摘要并在同一对话框窗口中选择下面的Group On字段
  3. 点击确定