Depending on what time range you want to compare by Y-o-Y this would still be correct.
The above pic will create a date range that allows you to compare the last weeks data with the previous year's data for the same week.
If you want to compare the last 52 weeks then this should already be a date range semgnet in Adobe (but if not then you can create it as suggested).
For Y-o-Y comparisons it depends on the time range (ie. week, month, year etc) that will dictate how you go about setting up the Y-o-Y comparison.