How to make a sum of total for each id

前端 未结 2 867
抹茶落季
抹茶落季 2021-01-28 03:55

Using Crystal report 7

I want to view the table 1 and sum of table2

table1

id name

001 raja
002 vijay
003 suresh
....

table2

2条回答
  •  失恋的感觉
    2021-01-28 04:36

    Join Table 1 and Table 2 on ID.
    Add the fields ID, Name, and Value to your report.
    Group the report on ID and Insert a Summary field (SUM) on VALUE to the Group Header.
    Add Name to the Group Header.
    Add a Grand Total (Report Footer) on Value.
    Hide or Supress the Details band.

    This will give you the same as you desire, but without the necessity of Running Totals and resets.

提交回复
热议问题