Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Where have you been all my life! I found the answer I needed in seconds..."

Geography

Where in the world do Tek-Tips members come from?

YOY or Period over Period Comparison without date fieldHelpful Member! 

HollyS (TechnicalUser)
7 Mar 12 9:25
Using Crystal 10 - MAS90/200 database

I'm trying to write a report that will analyze broker sales.  They want to review the sales multiple ways, either YTD over YTD or QTD over QTD, but the database that I'm pulling from doesn't have a specific date field.  The fields I have to choose from are Fiscal Year, Fiscal Period, Dollars Sold.

The ideal end result would look like this:

Broker1
Customer1  CustomerAddress  FY12YTDSales   FY11YTDSales  DIFF
Customer2...

or

Broker1
Customer1  CustomerAddress  FY12QTDSales  FY12QTDSales  DIFF
Customer2...

Is this possible give the fields that I have available?

Thanks,
Holly
Helpful Member!  briangriffin (Programmer)
7 Mar 12 10:07

The best way would be to create a date table or view. It makes writing the report easier and it's reusable.

It would look something like this - you'll probably add additional fields to address different reporting needs.

Date   Fiscal Year   Fiscal Month   FiscalQtr
1/1/2012   2012             7           3
2/1/2012   2012             8           3
3/1/2012   2012             9           3
Etc. etc.

For this report you would only need to populate it with the first day of every month, but most of the time you would insert a record for every day for the next ten years or so.

Then join the table/view on fiscal year and fiscal period to give you a date.

 

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close