Obsidian Dataview Bi-Weekly Tasks review

Hi all,

I’m trying to create a bi-weekly task review template using dataview to pull all (in)complete tasks from the last 2 weeks.

I use task plugin with a global filter #tasks.

I found this snippet that works perfectly fine but displays only the current week’s task.

FROM "periodic_notes/daily"
WHERE contains(text, "#task")
WHERE file.day.weekyear = number(split(this.file.name, "W")[1])
WHERE completed

My question is, how to get dataview display all (in)complete tasks from the past 2 weeks based on today’s date?

Thanks a lot!

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