Thank you! Workes like a charm.
Glad I asked here, I would have never figured this out by myself.
Follow up bonus question:
Could I somehow use this query for a progress bar with progress value?
Say I want to read 30 books this year, the progress bar would show how far along I am with this goal.
About progress bar, I only know to do that in DQL query. My knowledge in JS is almost zero. But I can try adapt this query (certainly not the best elegant solution…).
For example, if the goal is 30 books: