Im trying to calculate the date of the equivalent current day last year same week in standard SQL BigQuery.
For instance if the current date 2019-07-01 is a monday of week 27. I want to know the date of monday of week 27 last year (2018).
Current week would be select extract(isoweek from current_date())
but I don't know how to use this to calculate a date.
Expected output is 2018-07-02 if current date is 2019-07-01
The reason for this is that I want to compare current sales with same week and day of week as last year.
Any suggestions are appreciated.