The companion chart groups rows by Department and collapses each group's
Salary with a chosen function. Switch the aggregation below: sum,
avg, count, min, max, or median.
Filtering the grid recomputes the aggregate live.