# AggregateResult (@salmonui/data-grid/engine/grouping)

> The AggregateResult interface of @salmonui/data-grid/engine/grouping: Aggregate results of one row model; group g is slot g, the totals are slot tree.count (or 0 without groups).

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-grouping/AggregateResult

```ts
import type { AggregateResult } from '@salmonui/data-grid/engine/grouping';
```

Also exported from `@salmonui/data-grid/engine/aggregates`.

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

## Reference

Kind: interface

```ts
interface AggregateResult extends AggregateModelSnapshot {
    readonly scope: AggregateScope;
    readonly descriptors: readonly AggregateDescriptor[];
    readonly tree: GroupTree | null;
    readonly order: Int32Array | null;
    readonly dataCount: number;
    readonly source: readonly unknown[];
    readonly columns: ReadonlyMap<ColumnId, ColumnStats>;
    readonly cache: Map<number, AggregateValues>;
}
```

Aggregate results of one row model; group `g` is slot `g`, the totals are slot `tree.count` (or 0 without groups).

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `scope` | `readonly scope: AggregateScope;` |  |  |
| `descriptors` | `readonly descriptors: readonly AggregateDescriptor[];` |  |  |
| `tree` | `readonly tree: GroupTree \| null;` |  |  |
| `order` | `readonly order: Int32Array \| null;` |  | Data order the values were computed over. |
| `dataCount` | `readonly dataCount: number;` |  |  |
| `source` | `readonly source: readonly unknown[];` |  |  |
| `columns` | `readonly columns: ReadonlyMap<ColumnId, ColumnStats>;` |  |  |
