Dataview inline count notes with tag except a folder

I’m making a list of notes with certain tags in my vault using Dataview inline query

$=dv.pages("#tag").length

which gives the count of all notes in my vault with #tag, but, I want to exclude the notes in my “Templates” folder.

$=dv.pages('-"Templates"').length

This gives the count of all notes in my vault excluding the Templates folder, but not by tag, I can’t find a way to combine them in the inline format.

Help appreciated!

$=dv.pages('-"Templates" AND #tag').length

1 Like

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