Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SUM of the details in group header Crystal reports

I am generating the crystal report in the ASP.NET/C# Website. I require the groupwise sum in the header of the group, When I add the SUM field (Running Total Field) shows the first entry of the records is there any way to show the total of all records in details in the header of the same group?

like image 498
Rohit Chaudhari Avatar asked Apr 20 '13 05:04

Rohit Chaudhari


People also ask

How do I sum a sum in Crystal Reports?

Make a summary field: Right-click on the desired formula field in your detail section and choose "Insert Summary". Choose "sum" from the drop-down box and verify that the correct account grouping is selected, then click OK. You will then have a simple sum field in your group footer section.

How do I keep a group header and details in Crystal Reports?

Right click on the Group Header or Group Footer of the desired group. Select Change Group. On the Options tab, mark the Keep Group Together box. Click OK.


1 Answers

Running Totals won't work in a Group Header section because of the way they are evaluated. Instead, you could just use a regular summary function and place it in the Group Header. You can do this by either right-clicking the field to summarize, selecting "Insert", and then "Summary" or by creating a formula:

sum({table.field_to_summarize},{table.field_you_are_grouping_on})

like image 70
Ryan Avatar answered Oct 26 '22 06:10

Ryan