Custom Queries that have been configured with display columns can be configured to automatically group results by a display column.
Note:
Custom Written SQL Custom Queries cannot be configured for column grouping.
To configure Custom Query column grouping: