# Aggregations
URL: https://pro.rv-grid.com/api/aggregations/
Source: src/content/docs/api/aggregations.md
### `commonAggregators`

Defines a collection of common aggregation functions used for table calculations.
These aggregators transform an array of numerical values into meaningful statistical summaries.

```ts
commonAggregators: {
  sum: (values: any[]) => any;
  count: (values: any[]) => number;
  avg: (values: any[]) => number;
  min: (values: any[]) => number;
  max: (values: any[]) => number;
  median: (values: any[]) => number;
  mode: (values: any[]) => string | 0;
  range: (values: any[]) => number;
  variance: (values: any[]) => number;
  stdDev: (values: any[]) => number;
  first: (values: any[]) => any;
  last: (values: any[]) => any;
  distinct: (values: any[]) => number;
};
```

---

### `advancedAggregators`

```ts
advancedAggregators: {
  '%oftotal': (values: any[]) => number[];
  accSum: (values: any[]) => any;
};
```

---

### `Aggregations`

```ts
export type Aggregations = Record<AggregationType, (values: any[]) => any>;
```
