DanVincent
Technical User
- Jun 9, 2009
- 5
I have been beating my head in over this one,
Here is the deal.
I am still new to crosstabs and crystal. I am using crystal reports 2008.
I have a requirement to make a report that will count the number of sales{Order.SalesID} and {Transaction.InventoryCount} for a 6 month date range {TransactionDetail.Date}, compare the same sales data to last years 6 month date range and return a total.
Once totals are in, I need a percentage of increase/decrease between the two date ranges.
Lastly take the same sales data and pull 8 weeks forward of data to project sales.
I think im really close to completion but having real trouble with the Date Ranges.
I set up my manual crosstab and Limit by PartID.
then I have Params set up to prompt for 4 date ranges {@CYStartDate, @CYEndDate, @LYStartDate and @LYEndDate)
I use these for in the DateAdd formula
"{TransactionDetail.Date} < DateAdd("m", -1, {@CYStartDate})) And
{TransactionDetail.Date} > DateAdd("m", 1, {@CYEndDate})"
The problem with this is it ONLY returns a true/False boolean and I cant seem to figure out how to make it return something that can be summerized on.
I figure that I have the string wrong, but no matter how much I work on it. I cant seem to get anything different out of it.
Any ideas?
At this point if I can get meaninful counts from the date ranges I can summerize in a manual cross tab and do my percetages on those summeries.
Thanks in advance,
Dan
Here is the deal.
I am still new to crosstabs and crystal. I am using crystal reports 2008.
I have a requirement to make a report that will count the number of sales{Order.SalesID} and {Transaction.InventoryCount} for a 6 month date range {TransactionDetail.Date}, compare the same sales data to last years 6 month date range and return a total.
Once totals are in, I need a percentage of increase/decrease between the two date ranges.
Lastly take the same sales data and pull 8 weeks forward of data to project sales.
I think im really close to completion but having real trouble with the Date Ranges.
I set up my manual crosstab and Limit by PartID.
then I have Params set up to prompt for 4 date ranges {@CYStartDate, @CYEndDate, @LYStartDate and @LYEndDate)
I use these for in the DateAdd formula
"{TransactionDetail.Date} < DateAdd("m", -1, {@CYStartDate})) And
{TransactionDetail.Date} > DateAdd("m", 1, {@CYEndDate})"
The problem with this is it ONLY returns a true/False boolean and I cant seem to figure out how to make it return something that can be summerized on.
I figure that I have the string wrong, but no matter how much I work on it. I cant seem to get anything different out of it.
Any ideas?
At this point if I can get meaninful counts from the date ranges I can summerize in a manual cross tab and do my percetages on those summeries.
Thanks in advance,
Dan