Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Complicated Comparative Report Post Reply Post New Topic
Author Message
MissyLea
Newbie
Newbie
Avatar

Joined: 06 May 2015
Location: United States
Online Status: Offline
Posts: 6
Quote MissyLea Replybullet Topic: Complicated Comparative Report
     Posted: 11 May 2015 at 8:47am
I have a report I need to create that compares total income amounts over various date ranges, filtered by a group. These date ranges include:

Month over Prior year Month
Total year to date over Prior year to date
and the total of the prior year to end.

These are fiscal years and do not follow the normal calendar.

For the added wrinkle - this report needs to be dynamic and must not require the end user to enter parameters.

I have made several attempts but I just cannot get where I want to be....

I know how to do the customer grouping.

Any suggestions?



Edited by MissyLea - 11 May 2015 at 8:48am
Thanks!
ML
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 11 May 2015 at 10:29am
That depends on the data.  What defines a customer group.
IP IP Logged
MissyLea
Newbie
Newbie
Avatar

Joined: 06 May 2015
Location: United States
Online Status: Offline
Posts: 6
Quote MissyLea Replybullet Posted: 11 May 2015 at 10:30am
I have a customer type code - an actual field that is in my data set. I use that to define the group -
Thanks!
ML
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 12 May 2015 at 9:12am
I miss read the original question.  I thought you said you did not know how to do the customer grouping.  Anyhow.  I missed what the issue really is.  Sound like you need to hard code Fiscal Years in a way.

Simplified formula to get the right year of the fiscal year.

if month(currentdate) > 5 then year(currentdate) else year(currentdate)-1

Sometimes to get prior years (months) summaries requires sub-reports.

I hope this helps.
IP IP Logged
MissyLea
Newbie
Newbie
Avatar

Joined: 06 May 2015
Location: United States
Online Status: Offline
Posts: 6
Quote MissyLea Replybullet Posted: 12 May 2015 at 9:25am
Yes, I went to subreports and the select expert to get my month over month reporting. I was hoping to dynamically display the actual name of the month in a header, based on the transaction date but decided to take the easy route and just say "Current Year Month to Date" and "Prior Year Month to Date".
Separate subreports for each reporting period was the key.
Thanks!
ML
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum