My daily note has a property week: “24-41” (current year and week number).
My weekly note has the same property: week: “24-41”
In my weekly note I am building a tracker table that will list all days from this week and items I am tracking for it. If I try to say “this.week”, it lists every single day note in a database! if I manually insert “24-41” - it will list only the days from the current week (that have that number in its own “week” property).
What am I doing wrong? How do I reference the property in my week’s note so that I see only relevant day notes?
Things I have tried
I was wondering if it s a quotes issue - tried using quotes in a property… or not… not sure where the problem and why it can’t reference the current field.
table without id
file.link AS "Day",
choice(HB-Meditation, "👍","❌") AS "🧘",
choice(HB-Workout, "👍","❌") AS "🏋️"
from "Daily"
where week = this.week
sort file.name ASC
```dataview
table without id
file.link AS "Day",
choice(HB-Meditation, "👍","❌") AS "🧘",
choice(HB-Workout, "👍","❌") AS "🏋️"
from "Daily"
where contains(week, this.week)
sort file.name ASC
```
This format works in local tests. How does your vault structure differ?
---
week: 24-41
---
```dataview
table without id
file.link AS "Day",
choice(HB-Meditation, "👍","❌") AS "🧘",
choice(HB-Workout, "👍","❌") AS "🏋️"
from "Daily"
where contains(week, this.week)
sort file.name ASC
```
I actually resolved this: apparently, some of the properties in YAML were not resolving. As soon as all properties were recognized by Obsidian, this.week started working.