I want to display arrays from properties on their own lines so that tables of data read clearly as rows.
The Dataview queries are to be placed in files where they are only referencing their own YAML headers / properties. Each file stores the data for series I watch: the date watched, the series number, the episode number, and my notes for whatever has been viewed on a specific day.
I have read lots of threads on the forum, read the user docs, and searched online, but I have not been able to get a readable table.
The data and working queries I have tried are below. Using flatten
and group by
do not change layout that I see from just using a simple query.
With thanks for any help.
---
Date:
- "[[2024-10-01]]"
- "[[2024-10-02]]"
- "[[2024-10-03]]"
- "[[2024-10-04]]"
- "[[2024-10-05]]"
Series:
- "1"
- "1"
- "1"
- "1"
- "1"
Episode:
- "1"
- "2"
- "3"
- "4"
- "5"
Notes:
- Here are some observations about the episode, the series, the script, the acting, the directing etc
- Here are some observations about the episode, the series, the script, the acting, the directing etc
- Here are some observations about the episode, the series, the script, the acting, the directing etc
- Here are some observations about the episode, the series, the script, the acting, the directing etc
- Here are some observations about the episode, the series, the script, the acting, the directing etc
---
```dataview
TABLE WITHOUT ID
rows.Date AS Date,
rows.Series AS Series,
rows.Episode AS Episode,
rows.Notes AS Notes
WHERE file = this.file
FLATTEN file.name
GROUP BY file.name
```
```dataview
TABLE WITHOUT ID
Date
, Series
, Episode
, Notes
WHERE file = this.file
```