The STATS command supports these grouping functions:
STATS
:::{include} lists/grouping-functions.md :::
:::{include} functions/layout/bucket.md :::
:::{include} functions/layout/categorize.md :::