How to get sum by groups in Crystal Report

耗尽温柔 提交于 2019-12-11 10:27:16

问题


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

Using this formula sum({field.amount}, {field.group}) I only get sum for OVERALL but not for group 1 and 2.


回答1:


  1. Right Click field which you want to Sum
  2. Select Insert -> Summary and select Group On field below on the same dialog window
  3. Click Ok


来源:https://stackoverflow.com/questions/34333464/how-to-get-sum-by-groups-in-crystal-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!