|
-
Sep 14th, 2007, 11:48 AM
#1
Thread Starter
Frenzied Member
Running Totals Question
hey,
I got some running totals fields that I am trying to display in my group headers. Unfortunately the calculations are off when they are placed there. When I put them in the group footer they work fine. Is there a way I can get them to work in the header?
-
Sep 14th, 2007, 12:35 PM
#2
Re: Running Totals Question
What type of report designer?
What programming language?
What is the reports data source?
-
Sep 14th, 2007, 12:36 PM
#3
Thread Starter
Frenzied Member
Re: Running Totals Question
-
Sep 14th, 2007, 12:57 PM
#4
Re: Running Totals Question
Running Totals are calculated on a per record basis. At the Group Header only the group's first detail record would be included in the running total.
What exactly are you trying to achieve? If you want to print the sum of all detail records in the Group Header use a Summary formula.
-
Sep 14th, 2007, 12:59 PM
#5
Thread Starter
Frenzied Member
Re: Running Totals Question
I am just trying to replicate a report that was generated off of an old mainframe system. I am guessing that it did all the calculations then stored them somewhere before producing the report. It is an accounts receivable ageing report. I can just add them to the footer, was just trying not to confuse the end user.
-
Sep 14th, 2007, 01:12 PM
#6
Re: Running Totals Question
Well it certainly seems that a Summary formula would work. Create a formula similar to the following and place it in the group header.
Sum ({Field name to Sum},{Same field name as Group} )
-
Sep 14th, 2007, 01:21 PM
#7
Re: Running Totals Question
But, until the member records of that group are rendered for the report, the sum in the header will be 0 (or at best the first record). That's one of the problems I have with crystal, it tries to do everything in a top-down, one pass method. It takes some creativity to get things to show up out of order.
=tg
-
Sep 14th, 2007, 01:28 PM
#8
Thread Starter
Frenzied Member
Re: Running Totals Question
 Originally Posted by techgnome
But, until the member records of that group are rendered for the report, the sum in the header will be 0 (or at best the first record). That's one of the problems I have with crystal, it tries to do everything in a top-down, one pass method. It takes some creativity to get things to show up out of order.
=tg
yeah that's what I figured... was just checking to see if anyone had a shot in the dark for me.
-
Sep 14th, 2007, 01:48 PM
#9
Re: Running Totals Question
here's you shot - global variables... peppered througth the report, add to them, delay the printing until AfterRecordsRead .... we've had to do it in CR7/8.5... it's a mess... don't know if it's still an option in XI though. If it were me, I'd try to talk the users out of having it in the header.
-tg
-
Sep 14th, 2007, 03:24 PM
#10
Re: Running Totals Question
But, until the member records of that group are rendered for the report, the sum in the header will be 0 (or at best the first record). That's one of the problems I have with crystal, it tries to do everything in a top-down, one pass method. It takes some creativity to get things to show up out of order.
Crystal passess through the data multiple times. Summary operations will print correctly in the Group Header. I do it all the time...
-
Sep 14th, 2007, 03:26 PM
#11
Thread Starter
Frenzied Member
Re: Running Totals Question
 Originally Posted by brucevde
Crystal passess through the data multiple times. Summary operations will print correctly in the Group Header. I do it all the time...
Yes summaries do... the problem is I am using conditioned running totals.
-
Sep 14th, 2007, 03:34 PM
#12
Re: Running Totals Question
So, use a Summary on a formula. Summaries are just Running Totals that are calculated at an earlier phase/pass through the data.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|