TABLE default(Habit_1, "❌") AS "Sleep", DateEngFormat
FROM "Journaling/Daily Notes"
WHERE DateEngFormat >= DateEngFormat - dur(1 week)
Example :
DateEngFormat: 2022-09-29 (the same as the title of daily note in English format)
What I’m supposed to see
a table of habits from the last week ( 2022-09-22) to (2022-09-29)
What I see
Dataview: Every row during operation 'where' failed with an error; first 3:
- No implementation found for 'null - duration'
- No implementation found for 'null - duration'
- No implementation found for 'null - duration'
Another point is: maybe there’s a problem with the language used in your title and it’s not possible to extract the date in it (maybe because the text direction: from right to left). In that case maybe file.day doesn’t exist, then “null - duration” error
The first one: WHERE DateEngFormat >= date(file. Day) - dur(1 week)
It’s wrong i agreed because I don’t understand how file. Day work
i thought the fille.day give you the date of the Note (the same date of calander when creating the note )
but i read this in other topic :
file. Day gets the date from:
1 - file title if any part have the format yyyy-mm-dd (for example: [[2022-02-17]] , [[My file with date 2022-02-17]] , [[2022-02-18 Friday]] , etc.)
2 - field named Date (if you use in your note a field as Date: 2022-02-18
so I change the “DateEngFormat” to “Date”
to use file. Day
TABLE default(Habit_1, "❌") AS "Sleep", file.day
FROM "Journaling/Daily Notes"
WHERE file.day >= this.file.day - dur(1 week) AND file.day <=this.file.day
SORT file. day DESC