What I’m trying to do
I have daily notes: 2023-10-04
, weekly notes: 2023-W40
, and monthly notes: 2023-10
. In my monthly note, I pull all the highlights from my daily notes for review. I’m wondering whether there’s any way to group the entries by week? Even better if the group can have a link to the weekly note.
TABLE WITHOUT ID
file.link AS "Date",
highlight AS "Highlight"
FROM "Journal/1. Daily"
WHERE dateformat(file.day, "yyyy") = substring(string(this.file.name),0,4)
AND dateformat(file.day, "MM") = substring(string(this.file.name),5,7)
AND highlight != null
SORT file.day
Things I have tried
I tried adding:
GROUP BY dateformat(file.day, "WW")
but that breaks the query completely, I get one row for each week in the month, but they are all blank. Any ideas?
Thanks in advance for any help.