# computeAggregates (@salmonui/data-grid/engine/aggregates)

> The computeAggregates function of @salmonui/data-grid/engine/aggregates: Full computation over a row model (grouped when input.groups is set).

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-aggregates/computeAggregates

```ts
import { computeAggregates } from '@salmonui/data-grid/engine/aggregates';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-aggregates (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-aggregates.md).

## Reference

Kind: function

```ts
function computeAggregates<Row>(input: RowModelSnapshot<Row>, descriptors: readonly AggregateDescriptor[], columns: ColumnSnapshot<Row>, scope: AggregateScope, locale: string): AggregateResult;
```

Full computation over a row model (grouped when `input.groups` is set).
