What I’m trying to do
Hi all, I’m trying to create an obsidian-tracker query that indicates if I’ve fulfilled something each day on a Calendar graph.
My setup
Within all of my notes I have a frontmatter Date property: creation-date, which contains the notes creation date in the YYYY-MM-DD format, like so:
---
creation-date: 2025-03-13
cssclasses:
tags:
- "#daily/2025/mar"
---
Then within the daily note content, I may or may not include some activity tag, indicating if I did something that day, and how many times (if) I did, for example:
#health/wentoutside: 1
#health/swam: 1
#health/cycled: 1km
#health/walked: 1km
#health/exercise/run: 1km
#health/exercise/squats: 50
#health/exercise/pressups: 50
Things I have tried
With dataview I can almost achieve this perfectly with:
CALENDAR date(creation-date) FROM "Dailies"
WHERE contains(file.tags, "#health/wentoutside")
Although, I’m having trouble with the quantity bit… and it feels it’s better suited for obsidian-tracker.
With obsidian-tracker, (I think) I’m having difficulties with using a tags presence or non-presence as data.
I was confident with this snippet, but I get “No valid date as X value found in notes 48 files are not in the right format.”
searchType: frontmatter, tag
searchTarget: creation-date, health/wentoutside
xDataset: 1
folder: Dailies
month:
startWeekOn: 'Mon'
color: steelblue
I like not needing to specify that an activity wasn’t done that day, mostly because it feels like useless filler (even if it’s only a couple bytes), but I’d be grateful for any pointers, or feedback.
Thanks in advance