Hi, what is the best way to write a beast mode that returns the same week last year, e.g. 09/09/2024 ⇒ 11/09/2023
I would try this:
DATE_SUB(datefield, INTERVAL 52 WEEK)
You need to be careful how you compare week from one year to week from another. Depending upon how the calendar falls, it's apples and oranges.