Making dataview ignore the actual note

What I’m trying to do

I’m trying to make a daily note template. It was working until it isn’t anymore.
This is my query:

task FROM -"TEMPLATES" AND !outgoing([[2023-07-05]]) AND -" PROJECTS"
WHERE !checked

TEMPLATES and PROJECTS have tasks so I want to ignore them.
[[2023-07-05]] is the today note. I don’t know why I can’t make this query ignore the today note and search for others unchecked tasks.

Things I have tried

I’ve tried to change the “FROM” arguments. Every one is working except the one that should exclude the actual note from the query.

Can some one help?

Does this work in your vault?

```dataview
task 
FROM -"TEMPLATES" 
AND -"PROJECTS"
WHERE file.name !=this.file.name
WHERE !checked
```

Yes!
Thank you!

1 Like

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