Help with dataview syntax - Aiming to get the number of completed tasks from the last week so I can display it on my dashboard

What I’m trying to do

I’m trying to display the number of completed tasks from the last week on my dashboard (using dataview, and tasks plugins).

Things I have tried

I’ve read both the dataview, and tasks documentation but am still stuck. It seems that what I’m looking for is something around the done date filter, but I can’t get the syntax right: Filters - Tasks User Guide - Obsidian Publish

This is my code:

`$=dv.pages().file.tasks.where(t => t.completed and t => t.done after last week).length`