🔵 🔵 🔵


Primary

၊၊||၊|။

GROUP BY ⚬‎ᵈᵛ|Documentation|1st|20251021235802-00-⌔

Data Commands - Dataview#group-by

GROUP BY

Group all results on a field. Yields one row per unique field value, which has 2 properties: one corresponding to the field being grouped on, and a rows array field which contains all of the pages that matched.

GROUP BY field
GROUP BY (computed_field) AS name

In order to make working with the rows array easier, Dataview supports field “swizzling”. If you want the field test from every object in the rows array, then rows.test will automatically fetch the test field from every object in rows, yielding a new array. You can then apply aggregation operators like sum() or flat() over the resulting array.

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •