Results 1 to 6 of 6

Thread: [RESOLVED] CR Summarizing based on a condition

  1. #1

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

    Resolved [RESOLVED] CR Summarizing based on a condition

    Ok I have a field called invoice_amount and another called age_of_invoice... I want to summarize the invoice_amount into 4 different ages, ie <30 days, 31-60 days, 61-90 days and anything higher. This summary will have to be group level also. Anyone know how to do this?

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

    Re: CR Summarizing based on a condition

    Create a Formula and Group by the Formula. The following is in Crystal Syntax.
    Code:
    Select {age_of_invoice}
       Case Is < 30 :
          30
       Case 31 To 60 :
          60
       Case  61 To 90 :
          90
       Default :
          91

  3. #3

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

    Re: CR Summarizing based on a condition

    Not quite sure if I understand what you mean or if you understand what I am trying to do... I have 4 fields that need to be group level sums of the Invoice_Amount based on the age of the invoice.

    Groups are already set up by vendor, each vendor needs to have totals of the invoices depending on how old the invoice is. Each vendor has multiple detail lines, one for each invoice.

    Am I making sense? :P

  4. #4

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

    Re: CR Summarizing based on a condition

    Figured out a way to do it... had to make a suppressed field for each of the age ranges (detail level) then I had to make a group sum for each of them. There is probably a better way to do it but this seems to work.

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

    Re: [RESOLVED] CR Summarizing based on a condition

    There are probably several ways to create this report. Running Totals would work as well. This is how I understood your report

    Code:
    Group #1 - Vendor
       Group #2 - Age of Invoice formula
           Details - Invoice amount
       Group #2 Footer - Sum Amount by Age of Invoice
    Group #1 Footer - Sum Amount by Vendor

  6. #6

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

    Re: [RESOLVED] CR Summarizing based on a condition

    Yeah I am actually rewriting a system that was on a Wang Mainframe and trying to get the reports as close to the old ones (in layout) as possible.

    The layout is:

    Group header- Vendor No. - Current Invoice Amt - 31 through 60 - 61 through 90 - Over 90
    Details- Invoice info with amount and age
    Group Footer - blank

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