In certain circumstances it is desirable for business purposes to compare data for one year ago on a day of the week basis (i.e., Tuesday should line up with a Tuesday one year ago).
Simply subtracting 365 days, however, will skew the data as it fails to take into account either leap years, or the fact that one year ago today does not fall on the same day of the week. There are database functions which can perform this calculation, but there is also a way to force Strategy to perform this calculation.
The following procedure describes how to achieve this:
Since there are 7 days in each week and 52 weeks in each year, this calculation will always match each day of the week to the appropriate week of the previous year regardless of leap years.
NOTE: As each database handles the formatting of dates slightly differently, this exact syntax may not be appropriate. A database administrator should be able to provide the correct syntax for a given database.