# Selection Aggregates

The Grid enables you to select single or multiple cells or rows and calculate different metrics based on the selected data.

<CtaPanelOverview></CtaPanelOverview>

This functionality allows you to get a quick snapshot of some of the more important aggregates of the selected data. You can use the built-in approach and display these metrics at the bottom of the Grid or create your own elements that would display the data.

The Grid supports the following built-in aggregation for all selected cells:

* `max`—the greatest number. Valid for numeric fields.
* `min`—the smallest number. Valid for numeric fields.
* `sum`—the sum of all numbers. Valid for numeric fields.
* `average`—the average of all numbers. Valid for numeric fields.
* `count`—the total number of cells.
* `earliest`—the earliest date. Valid for `Date` fields.
* `latest`—the latest date. Valid for `Date` fields.
* `isTrue`—the total number of boolean fields with `true` value.
* `isFalse`—the total number of boolean fields with `false` value.

To enable the selection aggregates of the Grid enable its [`selectable`](https://www.telerik.com/kendo-react-ui-develop/components/grid/api/gridprops#selectable) prop, add a [`StatusBar`](https://www.telerik.com/kendo-react-ui-develop/components/grid/api/statusbar) component and update its [`data`](https://www.telerik.com/kendo-react-ui-develop/components/grid/api/statusbarprops#data) based on its current selection of the component kept inside its built-in `select` state.

The following example demonstrates selection aggregates in the Grid, where a status bar displays computed values (such as sum, average, and count) for the currently selected cells.

[Demo Source](https://demos.telerik.com/kendo-react-ui/grid/selection/aggregates/func/source.txt)

## Suggested Links

* [Selection Overview](https://www.telerik.com/kendo-react-ui-develop/components/grid/selection)
* [Cell Selection](https://www.telerik.com/kendo-react-ui-develop/components/grid/selection/cell-selection)
* [Cell Range Selection](https://www.telerik.com/kendo-react-ui-develop/components/grid/selection/cell-range-selection)
* [Row Selection](https://www.telerik.com/kendo-react-ui-develop/components/grid/selection/row-selection)
* [Multi-row Selection](https://www.telerik.com/kendo-react-ui-develop/components/grid/selection/multi-row-selection)
* [API Reference of the Grid](https://www.telerik.com/kendo-react-ui-develop/components/grid/api/grid)
* [API Index of the Grid](https://www.telerik.com/kendo-react-ui-develop/components/grid/api)
