How to make a sum of total for each id

前端 未结 2 866
抹茶落季
抹茶落季 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:34

    Try this it will work for you

    1) Add a Group in your crystal report i.e. by Name

    enter image description here

    2) Add a running total

    enter image description here

    enter image description here

    3) your report will be as follow

    enter image description here

    4) Your output will be

    enter image description here

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题