Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Summarize over header of a group (group parameter)

Status
Not open for further replies.

helmers

Programmer
Dec 13, 2004
2
CH
I am using crystal reports for visual studio.net.

In my report I have a group were I print an amount in the header (group criteria). I now need to have to summary of all those amounts in the bottom of the report. But how can I summarize on another field of a report? is this possible?
 
If for some reason you can't insert a grand total to get the total of group results, then you can use a variable like:

//{@accum} to be placed in the group header:
whileprintingrecords;
numbervar grpsum := grpsum + sum({table.amount},{table.group});
//substitute your group level value for sum({table.amount},{table.group})

//{@display} to be placed in the report footer:
whileprintingrecords;
numbervar grpsum;

-LB
 
Thanks a lot! :)

I tried to do everything with one variable which of course didn't work...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top