Sum in Details Section

Posted on 2009-02-09
Last Modified: 2012-05-06
I need to sum the number of discounts and the amount of the discount in the detail section of Crystal Reports 2008.

I have a possible 750 {Discount.ID}'s and need to total the ({DISCOUNT_RECORD.Amount}) for each. I need this information to be displayed in the details sections of my mailing labels report.

How can I achieve this?

I know you can't use a where formula but I need something like this...

sum({DISCOUNT_RECORD.Amount}) where {Discount.ID} = {Discount.ID}

----------I figured it out-----------

Used Running Totals and  hid the previous IDs if they matched.
Question by:mattkovo
    1 Comment
    LVL 100

    Accepted Solution

    You could also group by the discount Id field and use the summary functions on the group


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    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. …
    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 …
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    754 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

    25 Experts available now in Live!

    Get 1:1 Help Now