List the number of notes in a folder

Things I have tried - the snippet is also the solution!

%% List the number of notes in a folder %%

LIST "Number of notes: " + length(rows.file.link)
FROM "path/folder" 
WHERE file.folder
GROUP BY folder

Replace “path/folder” with the path and name of the folder you are interested in.

A more clean query :slight_smile:

```dataview
LIST WITHOUT ID "Number of notes: " + length(rows.file.link)
FROM "path/folder"
GROUP BY true
```
1 Like

Another, more generic version:

LIST WITHOUT ID "Number of notes: " + length(rows.file.link)
WHERE contains(file.folder, this.file.folder) GROUP BY true

Thanks for cleaning! :slight_smile:

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