m0ley
asked on
LastFullWeek from Last year
I'm running a report which compares results from last week using the LastFullWeek function. However, i would like to compare the same week in last year. I have tried LastFullWeek-52 but without any luck.
***CURRENTLY***
If {SaleDate} = LastFullWeek
THEN {Transactions}
***I WOULD LIKE***
If {SaleDate} = LastFullWeek (IN THIS TIME LAST YEAR)
THEN {Transactions}
Any help is appreciated :)
***CURRENTLY***
If {SaleDate} = LastFullWeek
THEN {Transactions}
***I WOULD LIKE***
If {SaleDate} = LastFullWeek (IN THIS TIME LAST YEAR)
THEN {Transactions}
Any help is appreciated :)
ASKER
hi mimcc,
thx for the quick response but,
Dateadd does'nt seem to function in formula editor
thx for the quick response but,
Dateadd does'nt seem to function in formula editor
ASKER
i have managed to install the DateAdd function as i am using version 7. Only to find another error shows up. This time is states 'A date-time is required here'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
mimcc,
CDate did not work, however DateTime works, and after a couple more hours trying to grab the whole week of last year, i have managed to get it working.... thx a lot for help!
much appreciated :)
m0le2000
CDate did not work, however DateTime works, and after a couple more hours trying to grab the whole week of last year, i have managed to get it working.... thx a lot for help!
much appreciated :)
m0le2000
Dateadd ("W",-52,{SaleDate})
You can then use that in your if statement.
good luck
mlmcc