Topic Options
#35183 - 01/23/13 12:14 PM Crystal Report year-to-year analysis report help
Ryan Offline
Adagio Buff

Registered: 09/07/12
Posts: 65
Loc: Manitoba, Canada
Hello,

I am trying to set up a report to compare the year to year revenue generated by our customers for each period and ytd. So far I've set up the main report with the customer field. I then created two sub-reports, one for the current year and one for the previous year and linked them to the main report by customer name. I've grouped the sub-reports by customer name and set it up so only the total for each customer shows up on the main report. Using was the only way I could figure out how to do this.

I'm having trouble with two areas. First, if the the customer has no revenue for that accounts in both years, I want to eliminate them from the report. Second, I can't figure out how to get the total for each year on the last page.

Any help/ideas are appreciated.

Ryan

Top
#35188 - 01/23/13 01:46 PM Re: Crystal Report year-to-year analysis report help [Re: Ryan]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3597
Loc: Toronto ON, Canada
Hello Ryan:
Let me suggest a different approach. Base the report on the transaction table with a link to the Customer table. Sort and group by Customer code. Filter the report to transactions in the past 2 years . Create a separate formula calculation for each period you want to see on the report (using IF). This approach solves both of your dilemmas and will likely run faster too.
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#35201 - 01/24/13 12:52 PM Re: Crystal Report year-to-year analysis report help [Re: Bruce Gardner]
Ryan Offline
Adagio Buff

Registered: 09/07/12
Posts: 65
Loc: Manitoba, Canada
Hi Bruce,

I've redid the report and I'm really close. I need some help with the IF statements in the formulas. I've set up a Parameter field called Date that enables the user to enter two ranges of dates for comparison (ex. 01/01/2012-31/01/2012 and 01/01/2011-31/01/2011). I also have a Parameter field to select the revenue account. I have two formulas set up, one for each date range so if the account is 0 it won't print the company name. I am am having trouble separating the Date ranges so that one formula does the current year figures and one formula does the previous years figures.

Any suggestions?

Thanks,

Ryan

Top
#35209 - 01/24/13 08:02 PM Re: Crystal Report year-to-year analysis report help [Re: Ryan]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3597
Loc: Toronto ON, Canada
Ryan:
Do you have 2 date parameters? Are the date parameters defined as ranges? Are you calculating 2 totals for each Customer: Current Year and Last Year?

Assuming you have used range parameters, the formula to calculate This Year would be something like:
If [Transaction date] in [This Year Range Parameter] then [Transaction amount] else 0

The actual fieldnames would vary depending on which tables you are using.
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#35210 - 01/25/13 04:55 AM Re: Crystal Report year-to-year analysis report help [Re: Bruce Gardner]
Ryan Offline
Adagio Buff

Registered: 09/07/12
Posts: 65
Loc: Manitoba, Canada
Thanks Bruce I'll give it a try.

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 107 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1865 Members
5 Forums
14418 Topics
70475 Posts

Max Online: 432 @ 01/20/25 10:17 PM
February
Su M Tu W Th F Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28