> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-poc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# rollup()

> Combine multiple MinN aggregates

<Icon icon="tag" iconType="duotone" /> Since [1.16.0][toolkit-1.16.0]

This aggregate combines the aggregates generated by other `min_n`
aggregates and returns the minimum values found across all the
aggregated data.

## Arguments

The syntax is:

```sql theme={"dark"}
rollup(
    agg MinN
) MinN
```

| Name  | Type | Default | Required | Description                   |
| ----- | ---- | ------- | -------- | ----------------------------- |
| `agg` | MinN | -       | ✔        | The aggregates being combined |

## Returns

| Column | Type | Description                                       |
| ------ | ---- | ------------------------------------------------- |
| rollup | MinN | An aggregate over all of the contributing values. |

[toolkit-1.16.0]: https://github.com/timescale/timescaledb-toolkit/releases/tag/1.16.0
