Dataview table is not working with this.propertyName - please advice!

What I’m trying to do

I am building a custom tracker.

  1. List item

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

Thank you so much!!!

Does this work?

```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 one throws a table with ALL weeks available, not the current one that I have defined in a property…

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.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.