Results 1 to 12 of 12

Thread: Running Totals Question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    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?

  2. #2
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,513

    Re: Running Totals Question

    What type of report designer?
    What programming language?
    What is the reports data source?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Running Totals Question

    lol sorry CRXI.

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    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.

  6. #6
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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} )

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Running Totals Question

    Quote 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.

  9. #9
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  10. #10
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

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

  11. #11

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Running Totals Question

    Quote 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.

  12. #12
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    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
  •  



Click Here to Expand Forum to Full Width