Dataview query to show notes from prior week

What I’m trying to do

Create a Dataview query for a weekly note template to be used by Periodic Notes that will show all notes created in the prior week. The naming convention for the weekly note is YYYY-W##.

For example, when I create a weekly note using the template this week, the title is 2023-W40. I want the query to show notes created in week 39 of 2023. (When I use the template next week, the query should display notes from week 40.)

Things I have tried

I’ve found similar posts in the forum but the solutions posted didn’t work. I’m getting an error related to the ‘dur’ function. Have also tried using ChatGPT for code but haven’t gotten exactly what I need.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.