The AGrid component supports an optional Summary Row that displays summary statistics (such as sum, average, min, max, count, etc.) for each column. The summary row is calculated dynamically based on the currently visible rows, meaning it respects filtering.

Table Summary Row

The summary row is controlled at the grid level. To enable it, turn on the showFooterRow option in the Grid configuration.

Column Aggregators

Once the summary row is enabled, each column may independently specify which aggregation function it should display. This is configured per column using the Table Footer Function setting. If no reducer is specified, the column footer will remain empty.

Supported Aggregators

configure summary row
ReducerDescription
sumTotal of all numeric values in the column
avgAverage (mean) of numeric values
minMinimum value in the column
maxMaximum value in the column
countTotal number of rows, including null values
devPopulation standard deviation
sdevSample standard deviation
varPopulation variance
svarSample variance

Filtering, Sorting & Paging

The summary row always reflects the current table view:

  • Only visible rows are included in calculations
  • Filters reduce the rows used for aggregation
  • Sorting has no effect on results

This ensures summary statistics remain accurate and intuitive while users interact with the table.

Numeric vs Non-Numeric Columns

Aggregations such as sum, avg, and variance metrics only apply to numeric columns.

For non-numeric columns: Numeric aggregations return no value. Count remains valid. Min/Max return based on alphabetical sorting.

Table Head Tooltip

Similar statistics are shown when a user hovers a column header.

table stats tooltip