Need help showing tasks only from current month

What I’m trying to do

I’m new in Obsidian and don’t work in IT. Recently started implementing dataview by going through this video and some posts here and there. Right now I’m trying to set up a Work Vault.

What I’m trying to do is only have the tasks for the current month appear in my daily notes. My dataview code in the daily note template looks like this:

Tasks

TASK
WHERE !completed
AND icontains(text, "#task")
GROUP BY file.name as filename
SORT filename ASC

And this is how the code looks for the finished tasks:

Finished tasks

TASK
WHERE completed
AND (icontains(text, "#task"))
AND completed
GROUP BY file.name as filename
SORT filename ASC

The problem with this approach is that for instance the finished task will always be shown, so after a couple of moths I’m going to have a long list of finished tasks in my daily notes.

What I’m trying to do is have only the tasks for the current month appear in my daily notes, both for unfinished and finished tasks.

Things I have tried

Searched on the forum (and on Google) with the key words “tasks month dataview” and “tasks for current month in daily note dataview”, but unfortunately haven’t found anything specific to this post.

Forgot to mention, the plugins that I use in this vault are:

  • dataview
  • periodic notes
  • templater
  • calendar

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