Bennie47250
Programmer
Using Crystal 7.0 on a MS SQL database
I believe how I have done this is considered a “Manual Cross Tab”.
I have formulas for each month over a 24 month period. Each month is hard coded with a month and year. Here is an example of one of the formulas.
if {MyTable.Month Key} = 7 and {MyTable.Period Key} = {MyOtherTable.Current Year}
then {MyTable.Qty Shipped} else 0
I then subtotal this formula in Group Footer 1
How can I convert the existing formulas to rewrite them so I can get a rolling 24 months?
For example when the report is ran in January 1 2012, the data would be for the range of Jan 1 2010 to Dec 31 2011
When ran in Feb 2012 the date range would be Feb 1 2010 to Jan 31 2012
When ran in March 2012 the date range would be Mar 1 2010 to Feb 28 2012
Thanks
Bennie
I believe how I have done this is considered a “Manual Cross Tab”.
I have formulas for each month over a 24 month period. Each month is hard coded with a month and year. Here is an example of one of the formulas.
if {MyTable.Month Key} = 7 and {MyTable.Period Key} = {MyOtherTable.Current Year}
then {MyTable.Qty Shipped} else 0
I then subtotal this formula in Group Footer 1
How can I convert the existing formulas to rewrite them so I can get a rolling 24 months?
For example when the report is ran in January 1 2012, the data would be for the range of Jan 1 2010 to Dec 31 2011
When ran in Feb 2012 the date range would be Feb 1 2010 to Jan 31 2012
When ran in March 2012 the date range would be Mar 1 2010 to Feb 28 2012
Thanks
Bennie