Solved

Restate Group totals at end of Report

Posted on 2006-11-21
6
256 Views
Last Modified: 2008-02-01
Experts,

"Restate Group totals at end of Report"
Crystal 9.0

My sections are as follows:
Group Header #1 - Job
Group Header #2 - CSI
Group Header #3 - CC
Group Header #3b - CC
Group Header #3c - CC
Group Header #4 – Cat (suppressed – drill down ok)
Details  (suppressed – drill down ok)
Group Footer #4 – Cat (suppressed – drill down ok)
Group Footer #3 - CC
Group Header #3b - CC
Group Header #3c - CC
Group Footer #2 - CSI
Group Footer #1 - Job
Report footer

The report generates approx. 4 to 20 pages of CC "detail". The readers like the detail, however would like to see recap of only Group footer -#2 CSI subtotals at the end of the job/report.

Objective: I’d like to restate the subtotals from CSI group for at the end of the report.

Note A:  Some of the groups (i.e. Group Header #3 – CC) have subsections b, c that contain “shared variables” and pass amounts from a subreport (also contained in Group#3 subsections).

Note B: I’d prefer the solution to not be “another subreport” in the Group #1 or Report Footer for two reasons stated below:
B.1. The report is not fast (due to existing subreports in Group #3).  If we add another subreport that recaps the CSI totals it will further slow the report.
B.2.  Suppressing the section Group #3 – CC suppresses shared variables amounts and subreports which results in zero amounts (on my report).  It seems that a shared variable and/or subreport can not pass data if suppressed.

Thank you
0
Comment
Question by:LFreehauf
  • 2
  • 2
  • 2
6 Comments
 
LVL 42

Accepted Solution

by:
frodoman earned 400 total points
Comment Utility
If a section is suppressed, then the subreport in that section will not run and therefore will not update any variables.

I understand from Note B that you don't want to do another subreport.  That is however, by far the most effective way to accomplish what you want.  Otherwise, I think what you'll need to do is to create a shared variable array.  Create a formula in group footer #2 that redims the array to add an element, then stores the subtotal value in the array.  Then you can create a formula in the report footer that itterates through the array and shows the stored totals.

I can give some assistance with the code if you need it.

frodoman
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 100 total points
Comment Utility
Agree,  The only way to get the group totals is to save them in a global array or reproduce them.

mlmcc
0
 

Author Comment

by:LFreehauf
Comment Utility
OK – Thanks.  
It’s not the answer I hoped; but you provided the expertise and (the best) direction that I should take.  Very valuable.  Thanks.

I'll add some points and split.

I'll pursue the subreport type solution “because I know how to execute”.

I guess I’ll need to create/modify a subreport, passing the variable at the CSI level (since I can not simply copy this Main/container report and suppress the CC section – due to the shared variables at the CC level).

Hopefully this issue will stay open for follow-up question; In case I need to try the “shared variable array”.  But I doubt I’ll attempt such.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 42

Expert Comment

by:frodoman
Comment Utility
The shared variable solution will be a bit messy - I do think you'll ultimately be better off with a more manageable subreport but post back if you decide you want to use the other option.

frodoman
0
 

Author Comment

by:LFreehauf
Comment Utility
I understand and appreciate.
Thanks.
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
Glad i could help.

mlmcc
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now