Iβll leave one example here based in one point: adding a date field in each note.
example note
An example note (with an inline field to fix a date, but you can use a field in frontmatter):
dDate:: 2022-12-24
## Denni's Goals
- [x] π· Create PIGGS
- [ ] ποΈ Movement
- [ ] π Bible App
- [ ] π° EveryDollar
- [ ] π Make the bed
- [ ] π‘ Learn a new thing
- [x] πΈ Guitar - 10 minutes
the query
Now a query based in these conditions:
- as I see in your mockup, to you the start of the week is in sunday⦠so, for the case the weekly query is placed in a note with a Saturday date. why? to use a comparison and calculation based on the date in that field
- because you use in the section title an
'(βDenniβs Goalsβ) you need to ignore it inWHERE meta(T.section).subpath = "Dennis Goals" - the query is based in a fixed list of ordered seven tasks
dDate:: 2022-12-24
```dataview
TABLE WITHOUT ID
upper(dateformat(dDate, "cccc")) AS Weekday,
choice(rows.T.completed[0], "π’", "β") AS π·,
choice(rows.T.completed[1], "π’", "β") AS ποΈ,
choice(rows.T.completed[2], "π’", "β") AS π,
choice(rows.T.completed[3], "π’", "β") AS π°,
choice(rows.T.completed[4], "π’", "β") AS π,
choice(rows.T.completed[5], "π’", "β") AS π‘,
choice(rows.T.completed[6], "π’", "β") AS πΈ
FROM "your-folder-path"
FLATTEN file.tasks as T
WHERE meta(T.section).subpath = "Dennis Goals"
WHERE dDate <= this.dDate AND dDate >= this.dDate - dur(6days)
GROUP BY dDate
SORT dDate ASC
```
Isnβt an elegant query (with undesirable repetitions), but is one way inside dql limitations.
the result
(weekdays are in portuguese, my local language)
