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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Create a running total in a group header

Status
Not open for further replies.

agreen10

IS-IT--Management
Oct 20, 2005
70
US
Hi,

I am using Crystal 11. I am trying to create a running total for a group of records and I am not successful. I can create the running total in the detail section but when I try it for the group, it does not work. Can someone please help me with the correct formula to create a running total for a group that will be placed in the group header.

Thanks.
 
Running totals allow you to do clever things with grouping and formulas. They also accumulate for each line, hence the name. The disadvantage is that they are working out at the same time as the Crystal report formats the line. You cannot test for their values until after the details have been printed. You can show them in the group footer but not the group header, where they will be zero if you are resetting them for each group.

If you're not making a selection, you might get the same result with a summary total. Right-click on a field and choose Insert to get a choice of Running Total or Summary.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
You can not put Running Totals in Headers, you can only use Summaries.

RTs will only display in Footers.

Ian
 
You need to explain more specifically what you are trying to summarize, and provide some sample data so we can see what you're trying to do. You can probably use a variable to do your summary, but without more info it would be hard to say for sure.

-LB
 
I actually fixed my problem. I placed the running totday in the group footer that way I was able to get the total for the groups.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top