First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.
What I’m trying to do
Hi all, I log a daily word count in a property/YAML in my daily notes, and I’m trying to set up a Dataview block in my weekly note that will give me the sum and average for the week.
Things I have tried
The property is called “count” and it’s a number. I’m using the FROM and WHERE to point to the daily notes from the week. This setup:
/ ```dataview
TABLE
sum(count) as "Word Count"
FROM #journal/daily
WHERE contains(week, "2024-OT-33")
generates this view:
whereas I would like to see just a number, the total sum of the “count” field for the week’s notes.
An average would be a nice-to-have, and I imagine is pretty easy to do once the sum is working properly.
Thanks for reading and appreciate any help!