First, search the help docs and this forum. Maybe your question has been answered! The debugging steps can help, too. Still stuck? Delete this line and proceed.
What I’m trying to do
I have built a vault for handling my students. I have a daily note that I take attendance. If a child is absent I click complete on a checkbox with their name. That tells me their name and the date they were absent. In a separate note with their name I want to check the entire semester and see how many times they were absent in a dataview window in their file. I’m trying to track all of a students absences throughout the year.
Things I have tried
Task
FROM "X School/7th Grade"
WHERE text = "Aisha X"
GROUP BY file.link
SORT created ASC, rows.file.ctime ASC
LIMIT 100
Task
FROM “X School/7th Grade”
WHERE text LIKE “%Aisha X%”
GROUP BY file.link
SORT created ASC, rows.file.ctime ASC
LIMIT 100
I even let ChatGPT have a go at it and all I get are returned errors
Dataview: Error:
– PARSING FAILED --------------------------------------------------
1 | Task
2 | FROM “X School/7th Grade”
3 | WHERE text LIKE “%Aisha X%”
| ^
4 | GROUP BY file.link
5 | SORT created ASC, rows.file.ctime ASC
Expected one of the following:
‘*’ or ‘/’ or ‘%’, ‘+’ or ‘-’, ‘>=’ or ‘<=’ or ‘!=’ or ‘=’ or ‘>’ or ‘<’, ‘and’ or ‘or’, /FROM/i, EOF, FLATTEN [AS ], GROUP BY [AS ], LIMIT , SORT field [ASC/DESC], WHERE
In my daily form it looks like this
Absences
- [ ] Name one
- [ ] Name two
- [ ] Name three … etc
If someone is absent I mark them off and it records the name and date. I want my dataview query to show me as I go through the year how many times that particular student has been absent for a quarter or semester or the whole year.
Can anyone help me.