Dragonscar
Technical User
I've browsed through the threads and so far havent' found an answer to my dilemma. I am trying to compare LastFullMonth this fiscal year with the same month last fiscal year and fiscal year to date through last month with last years fiscal year-to-date through the corresponding month.
Since our fiscal year begins June 1, I can't use the wonderful built ins. And I don't want to put in a specific date as this report will be used on the fly by users throughout the year. DateAdd requires a specific date and will not allow me to use a variable (e.g. Currentdate) or even a formula that uses a variable (e.g. {?date} using Currentdate.
Samples of what I've tried:
If {SOP30200.DOCDATE} in LastYearMTD - Month(1)
If {SOP30200.DOCDATE} in DateAdd ("m",-12, LastFullMonth)
Both of the above give an error message that a date is required.
If I simply change the date on the computer I still run into the problem with Last year MTD.
Any suggestions?
BTW, I did note that several people asked about changing the defaults for the builtins especially regarding fiscal years. Is there any way to do this so that this issue doesn't remain an issue for every report for businesses on a fiscal year? Especially for those that don't even make it easy by using an 6-month flip?
Thanks so much,
Laura
Since our fiscal year begins June 1, I can't use the wonderful built ins. And I don't want to put in a specific date as this report will be used on the fly by users throughout the year. DateAdd requires a specific date and will not allow me to use a variable (e.g. Currentdate) or even a formula that uses a variable (e.g. {?date} using Currentdate.
Samples of what I've tried:
If {SOP30200.DOCDATE} in LastYearMTD - Month(1)
If {SOP30200.DOCDATE} in DateAdd ("m",-12, LastFullMonth)
Both of the above give an error message that a date is required.
If I simply change the date on the computer I still run into the problem with Last year MTD.
Any suggestions?
BTW, I did note that several people asked about changing the defaults for the builtins especially regarding fiscal years. Is there any way to do this so that this issue doesn't remain an issue for every report for businesses on a fiscal year? Especially for those that don't even make it easy by using an 6-month flip?
Thanks so much,
Laura