Looker’s Table with Subtotals tabulates the subtotals of specific measures in a given table. The visualization groups query results by measures and pivots, and subtotals are displayed on the first row of each group. Users are able to dynamically collapse/expand each group.

This chart reduces the need to create multiple tables for various groups, and makes it easy to compare totals for multiple groups on the same chart.

See the Code