Hierarchical Group in Dataview

What I’m trying to do

I have several pages which have ‘subject’ and ‘semester’ metadata.

A-1.md
subject: A
semester: Fall

A-2.md
subject: A
semester: Spring

A-3.md
subject: A
semester: Fall

B-1.md
subject: B
semester: Fall

B-2.md
subject: B
semester: Spring

B-3.md
subject: B
semester: Spring

I’d like to get the dataview table something like this in the hierarchically organized way.

Clipboard 2

Things I have tried

TABLE WITHOUT ID rows.Subject as “subject”, Semester as “semester”, map(rows, (r) => r.rows.file.link) as file
WHERE subject
GROUP BY subject as Subject
GROUP BY rows.semester as Semester

The result is
Clipboard 3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.