Skip to Content
author's profile photo Former Member
Former Member

Formulas and Groups

Post Author: vondee

CA Forum: Crystal Reports

I have a report grouped by year, with a percent total for each year that is calculated in a formula from running totals:

2004 - XX%

2005 - XX%

2006 - XX%

2007- XX%

I want to add a formula next to the percent that calculates the difference between that year's XX% and the previous year. So the result of 2007 XX% - 2006 XX% appears in the 2007 group. The result of 2006 XX% - 2005 XX% appears next to 2006, etc.

Is this possible in Crystal? Thanks for any ideas-

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 11:23 PM

    Post Author: fusion

    CA Forum: Crystal Reports

    you should try to avoid Running Totals.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 11:26 PM

    Post Author: fusion

    CA Forum: Crystal Reports

    This should be possible using just the sum but if you use running total, it might give you incorrect result.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 11:30 PM

    Post Author: kcheeb

    CA Forum: Crystal Reports

    Seems to me there's a prevrow function that can be used to return a value. Not sure if I'm remembering correctly or not and what the behaviour is in a group.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.