I’ve got a report that compares the current month’s data to last year’s data for the same period (example: comparing August 2009 to August 2008).
I set this up by using the following in the select expert which takes care of it:
{INVOICE.INVOICE_DATE} in {?Start Date} to {?End Date}
or
({INVOICE.INVOICE_DATE} >= date(year({?Start Date})-1,month({?Start Date}),day({?Start Date}))
and
{INVOICE.INVOICE_DATE} <= date(year({?End Date})-1,month({?End Date}),day({?End Date})))
I now need to schedule this report to run on the first of each month. This would mean that instead of having a parameter {?Start Date} & {?End Date}, this needs to be hard coded. For example, on Oct 1, this report will need to retrieve data for 9/1/2009 – 9/30/2009 AND 9/1/2008 and 9/30/2009.
Any help would be greatly appreciated.
I set this up by using the following in the select expert which takes care of it:
{INVOICE.INVOICE_DATE} in {?Start Date} to {?End Date}
or
({INVOICE.INVOICE_DATE} >= date(year({?Start Date})-1,month({?Start Date}),day({?Start Date}))
and
{INVOICE.INVOICE_DATE} <= date(year({?End Date})-1,month({?End Date}),day({?End Date})))
I now need to schedule this report to run on the first of each month. This would mean that instead of having a parameter {?Start Date} & {?End Date}, this needs to be hard coded. For example, on Oct 1, this report will need to retrieve data for 9/1/2009 – 9/30/2009 AND 9/1/2008 and 9/30/2009.
Any help would be greatly appreciated.