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

> The aggregatesForModel function of @salmonui/data-grid/engine/aggregates: Values of group g (or the totals for -1) as the final row model shows them: with a page-wise scope and a paged view (or a paged ungrouped model), only the page's rows count.

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

```ts
import { aggregatesForModel } 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 aggregatesForModel<Row>(model: RowModelSnapshot<Row>, g: number): AggregateValues | null;
```

Values of group `g` (or the totals for -1) as the final row model shows
them: with a page-wise scope and a paged view (or a paged ungrouped
model), only the page's rows count.
