How to filter based on source with the WHERE filter in dataview?

What I’m trying to do

Implement this logic in a dataview query:

Is inside “inbox” directory (case-insensitive match) and is not tagged with “note/fleeting”

Sometimes my fleeting notes are tagged, but when they go into the system, they get no tag and go to “inbox”. Both locations should be evaluated.

Things I have tried

Tried to use an OR after a WHERE, but it requires a clause whereas the path can only be a source from what I gathered in dataview documentation.

Current query:

```dataview

TABLE WITHOUT ID
file.link as "Fleeting",
(date(today) - file.cday).day as "Days alive"
WHERE contains(file.tags, "note/fleeting") OR "inbox"

sort file.cday asc
where file.name != "notebox"

Is inbox a directory? If so, try…

```dataview
TABLE WITHOUT ID
file.link as "Fleeting",
(date(today) - file.cday).day as "Days alive"
WHERE contains(file.tags, "note/fleeting") OR contains(file.path, "inbox")
sort file.cday asc
where file.name != "notebox"
```

The "inbox" notation is specific to the FROM command.

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