I need to create a report where customer sales increased x$ for this 12 month period over the last 12 month period. Parameters are period, year, and increase. If the user enters parameters of 12, 2005, and 5000.00 then they can see the customers whose sales for period 1 - 12 of 2005 increased by 5000.00 over the sales for periods 1 - 12 of 2004. We are running under Crystal 10 with a SQL database.
Setup
Table has the following fields:
Year, Period, CustID, Sales $
The data looks like this:
2006, 1, ABC, 200.00
2006, 2, ABC, 400.00
2006, 3, ABC, 100.00
2005, 1, ABC, 150.00
2005, 2, ABC, 200.00
There is a separate record for each period and year combination per customer.
If User enters: Period 10 Year 2005
The report needs to be on a rolling 12 months so I would want Period 1 - 10 of 2005 and Period 11 and 12 of 2004 for the current sales and Period 1 - 10 of 2004 and Period 11 and 12 of 2003 for last year sales
Report output:
Cust# Sales $ Current Sales & Last
ABC $$$ $$$$
BBB $$$ $$$$
PROGRESS SO FAR:
I have read the rolling threads, but most of them have to do with one record per Year and I have muliple records per year. Not sure if thread767-991283 would help me.
PROBLEM:
Do I use the select expert or formulas to accomplish this or a combination?
Suggestions, comments, follow up questions all will help.
THANKS!
Setup
Table has the following fields:
Year, Period, CustID, Sales $
The data looks like this:
2006, 1, ABC, 200.00
2006, 2, ABC, 400.00
2006, 3, ABC, 100.00
2005, 1, ABC, 150.00
2005, 2, ABC, 200.00
There is a separate record for each period and year combination per customer.
If User enters: Period 10 Year 2005
The report needs to be on a rolling 12 months so I would want Period 1 - 10 of 2005 and Period 11 and 12 of 2004 for the current sales and Period 1 - 10 of 2004 and Period 11 and 12 of 2003 for last year sales
Report output:
Cust# Sales $ Current Sales & Last
ABC $$$ $$$$
BBB $$$ $$$$
PROGRESS SO FAR:
I have read the rolling threads, but most of them have to do with one record per Year and I have muliple records per year. Not sure if thread767-991283 would help me.
PROBLEM:
Do I use the select expert or formulas to accomplish this or a combination?
Suggestions, comments, follow up questions all will help.
THANKS!