CR 2008 w/ SQL Database
Hello,
I would like to thank anyone who takes the time to help me out with a report I'm building. I have just recently got back into Crystal reports after 5 years. I am trying to build a report that will show sales for this year compared to last year along with % change by department. The report will look similar to this:
Candy Graphics Shoes
06/22/09 200 300 900
06/22/08 100 600 900
+/- % 100% -100% 0%
06/23/09 450 200 1000
06/23/08 300 250 1250
+/- % 50% -20% -20%
and so on for the rest of the week.
The only way that I can get this layout with my very foggy Crystal knowledge is without using any grouping and creating each individual formula. I can do this, but it seems extremely repetitive and definitely not using the power of CR.
I have tried using a pivot table with selection criteria I found while searching other similar questions to mine. Such as this:
{TB_RECEIPT.DATE_CLOSED} in {?MyDateRange} or
{TB_RECEIPT.DATE_CLOSED} in dateadd("yyyy",-1,minimum({?MyDateRange})) to dateadd("yyyy",-1,maximum({?MyDateRange}))
my results turn out with left hand row names of:
06/22/08 instead of 06/22/08
06/23/08 06/22/09
06/22/09 06/23/08
06/23/09 06/23/09
etc. etc.
I would prefer to stay away from a pivot table if possible since I have many Departments running across the top columns. If anyone has any suggestions on how to create this report other than separate formulas I would greatly appreciate it. I hope I have explained my issue clearly.
Thank you!
Josh
Hello,
I would like to thank anyone who takes the time to help me out with a report I'm building. I have just recently got back into Crystal reports after 5 years. I am trying to build a report that will show sales for this year compared to last year along with % change by department. The report will look similar to this:
Candy Graphics Shoes
06/22/09 200 300 900
06/22/08 100 600 900
+/- % 100% -100% 0%
06/23/09 450 200 1000
06/23/08 300 250 1250
+/- % 50% -20% -20%
and so on for the rest of the week.
The only way that I can get this layout with my very foggy Crystal knowledge is without using any grouping and creating each individual formula. I can do this, but it seems extremely repetitive and definitely not using the power of CR.
I have tried using a pivot table with selection criteria I found while searching other similar questions to mine. Such as this:
{TB_RECEIPT.DATE_CLOSED} in {?MyDateRange} or
{TB_RECEIPT.DATE_CLOSED} in dateadd("yyyy",-1,minimum({?MyDateRange})) to dateadd("yyyy",-1,maximum({?MyDateRange}))
my results turn out with left hand row names of:
06/22/08 instead of 06/22/08
06/23/08 06/22/09
06/22/09 06/23/08
06/23/09 06/23/09
etc. etc.
I would prefer to stay away from a pivot table if possible since I have many Departments running across the top columns. If anyone has any suggestions on how to create this report other than separate formulas I would greatly appreciate it. I hope I have explained my issue clearly.
Thank you!
Josh