How to display group totals in group header

Posted on 2004-10-20
Last Modified: 2012-05-05
I am writing a report that has totals for a single group.  The report layout is:

Report Header:  Suppressed
Page Header:  Title information
Group header 1:  Grouping information, description of group, and difference between group total A and group total B (suppressed if group total A = group total B)
Detail A:  Detail that leads to group total A
Detail B:  Detail that leads to group total B
Group Footer:  Suppressed
Page Footer:  Suppressed
Report Footer:  Suppressed

There is a specific way that this report is to be laid out and I can't change that.  It was written in R&R v 5.1 for an older version of our software, but the newer version requires either R&R9 or Crystal.  Because of the multiple LOJ's, I had to go with Crystal.  R&R has problems with it.  Anyway,  I must write the new crystal report to look EXACTLY like the other.  Don't ask.  I can't seem to get the group to suppress if both of the totals are equal.  I also can't get the difference between the two to display in the group header.  I can display and do all this in the footer, but not in the header.  Is there any way to do this?
Question by:traigo
  • 2
LVL 100

Expert Comment

ID: 12364023
You need to create summaries of the fields and place them in the appropriate footers.  They can then be dragged to the header and will display properly.

LVL 28

Accepted Solution

bdreed35 earned 300 total points
ID: 12364165
Just to clarify mlmcc's post:

You need to create summaries by right clicking one of the fields that you want to total, and choose Insert, Summary.
The field to summarize should be populated for you, change the summary type if necessary, and choose the location - should be group 1.
Click OK.
By default, the summaries will be placed in the Footer of the location that you choose - so group footer 1 in your case.
You can drag the summary fields from the group footer into the group header adn they will give you the same result.
Repeat this process for as many summaries that you need.

To suppress a group based upon these summaries, use group selection.
Report menu, Seleciton Formulas, Group.
Enter the following logic:

sum({table.fieldA},{table.group1field}) <> sum({table.fieldB},{table.group1field})

Save and Close.
The Group Selection will only show groups where the 2 summaries are not equal to each other.  This is much easier than suppressing Group Header 1, Details, and Group HEader 2.

Author Comment

ID: 12369620
Thanks for the response.  I will do as you have said and let you know of the results.

Author Comment

ID: 12389429
Thanks for the great help.  I was able to get the report working per your instructions.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question