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
Solved

How to display group totals in group header

Posted on 2004-10-20
4
817 Views
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?
0
Comment
Question by:traigo
  • 2
4 Comments
 
LVL 100

Expert Comment

by:mlmcc
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.

mlmcc
0
 
LVL 28

Accepted Solution

by:
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.
0
 

Author Comment

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

Author Comment

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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. …
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

840 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