Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


How to display group totals in group header

Posted on 2004-10-20
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 101

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 1200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

730 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