---
title: rollup() | Tiger Data Docs
description: Combine multiple MinN aggregates
---

Since [1.16.0](https://github.com/timescale/timescaledb-toolkit/releases/tag/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:

```
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. |
