I just set up a bookshelf with dataview and want to add some stats about my library.
I used the following query to get the total number of books in my library:
`$= dv.pages('"Books/Library"').length`
Now I would like to get the number of books I have read this year.
My YAML frontmatter for each book looks like this:
---
Author:
Genre:
Status:
Type:
Cover:
Date-Read:
---
So I’m looking for something along the lines of
Status = "read" and Date-Read >= date(2022-01-01) AND Date-Read <=date(2022-12-31)
and get a number as output.
Is this possible with the .lenght property?
Thank you for your help!