Show undone task

HI!
I’m trying to have a query for tasks that must be completed in this week (between monday and sunday) but I can’t get the query to show what I’m looking for.
I’m trying this (without the leading \ )

\```tasks
not done
due after last sunday AND before next monday
sort by due date
\```

but the result is all the tasks not completed.
Where’s my mistake? Can you help me, please?

Thanks in advance

Without suitable data I can’t test this but you need “due” twice, like

due after last sunday AND due before next monday

I think this is what you need:

```tasks
not done
due after sunday
due before next monday
sort by due date
```

I do something very similar in my vault, except I look one week in the future, regardless of day:

```tasks
not done
due after today
due before in one week
```

You could use the AND, but then I think you’d need another “due” (h/t @IWC) and parenthesis, like:

```tasks
not done
(due after sunday) AND (due before next monday)
sort by due date
```

I find it cleaner the other way though.

1 Like

Thanks a lot. Tried all the three query you suggested but the only one that give me results it’s your (that was also my Plan B, just modified slightly my Tasks note).
I’m wondering why the others are not working…

What data do you need if you wish to help me learning something new?

Ah, I think I made a mistake. Try this instead:

not done  
due after this sunday  
due before next monday  
sort by due date  

I added “this sunday” instead of “sunday”. I don’t think this should be necessary, but for some reason this seems to work better (in my vault at least)

1 Like

Thanks a lot!
This one is the solution!

1 Like

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