Solved

Evaluate Group Summaries against each other in Crystal Reports

Posted on 2013-05-16
2
291 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

20 Experts available now in Live!

Get 1:1 Help Now