I’m trying to do a report which shows data for the last full month, plus the same month for the previous year.
At the moment I have two reports, one pulling data for last month and another pulling data for same month last year, whereby I have to manually enter the date range myself.
However, report requirements mean I need to automate this every month, and also draw comparisons on the same report (so two seperate is not an option).
Ive used this selection formula, but it brings back more than I need, it seems to be all years:
Month({ORDER_HISTORY.MODIFIED_DATE}) = Month(DateAdd("m", -1, currentdate))
Grateful for any help.
Thank you
UrbanHim
Crystal XI Report Writer
London
![[shadeshappy] [shadeshappy] [shadeshappy]](/data/assets/smilies/shadeshappy.gif)
[small]What's the best cure for a hangover?... Heavy drinking the night before!![/small]
At the moment I have two reports, one pulling data for last month and another pulling data for same month last year, whereby I have to manually enter the date range myself.
However, report requirements mean I need to automate this every month, and also draw comparisons on the same report (so two seperate is not an option).
Ive used this selection formula, but it brings back more than I need, it seems to be all years:
Month({ORDER_HISTORY.MODIFIED_DATE}) = Month(DateAdd("m", -1, currentdate))
Grateful for any help.
Thank you
UrbanHim
Crystal XI Report Writer
London
![[shadeshappy] [shadeshappy] [shadeshappy]](/data/assets/smilies/shadeshappy.gif)
[small]What's the best cure for a hangover?... Heavy drinking the night before!![/small]