Solved

Evaluate Group Summaries against each other in Crystal Reports

Posted on 2013-05-16
2
294 Views
Last Modified: 2013-05-16
I have a report with summaries on a group.  I cannot figure out how I can evaluate the group summaries against each other.  Specifically, I have two values in each row, 'dollar amount' and 'year'.  In my group header/footer I have a sum total of 'dollar amount' grouped under each 'year'.  So I can have a total for 2012 and a total for 2013.  I can even do a grand total for 2012 and 2013 together, but how do I create a calculation where I get the difference of 2013 minus 2012?
0
Comment
Question by:Jake Pratt
2 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39172384
I can think of 2 methods.

1.  Use variables to save the summary values then calculate the difference.

2.  Create 2 formulas
LastYear
If Year({DateFIeld}) = Year(Currentdate) - 1 then
    {AmountField}

ThisYear
If Year({DateFIeld}) = Year(CurrentDate) then
   {AmountField}

Those formulas can be summarized anywhere to get the totals for LastYar and ThisYear and then a difference can be calculated

Sum({@ThisYear}) - Sum({@LastYear})

mlmcc
0
 

Author Closing Comment

by:Jake Pratt
ID: 39172592
Now why didn't I think of that?!  Very nice.  Thanks.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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 …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 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