Trying to Exlude Folder Not working

Things I have tried

Various code

What I’m trying to do

Dataview Query

I’m trying to show all quotes that are tagged as such, but want to exclude my templates folder which has the tag there as well. The files are on iCloud, but I dont know if I have to put the full path… Here’s what I have:

TABLE WITHOUT ID Author, link(file.link, Title) AS "Quote", Publication, Year, Note, Rating
FROM #note/type/quotes and -"iCloud Drive/Obsidian/SecondBrain/900 Templates"

Or

TABLE WITHOUT ID Author, link(file.link, Title) AS "Quote", Publication, Year, Note, Rating
FROM #note/type/quotes and -"SecondBrain/900 Templates"

You just need to use the “internal” path. I.e., if your vault name is “SecondBrain” and the folder “900 Templates” is a first level folder (the first level after the vault root), then you just need to write FROM #note/type/quotes AND -"900 Templates"

1 Like

perfect! really appreciate it. I changed from directory a while back and all my paths changes… I could have sworn I was using the vault name in the old setup, but this works great.