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

Early access [1.6.0](https://github.com/timescale/timescaledb-toolkit/releases/tag/1.6.0)

This function combines multiple gauge aggregates into one. This can be used to combine aggregates from adjacent intervals into one larger interval, such as rolling daily aggregates into a weekly or monthly aggregate.

## Arguments

The syntax is:

```
rollup(
    gs GaugeSummary
) RETURNS GaugeSummary
```

| Name | Type           | Default | Required | Description                                                                                                             |
| ---- | -------------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------- |
| `gs` | `GaugeSummary` | -       | ✔        | A gauge aggregate created using [`gauge_agg`](/docs/reference/toolkit/counters-and-gauges/gauge_agg/gauge_agg/index.md) |

## Returns

| Column | Type         | Description                                                           |
| ------ | ------------ | --------------------------------------------------------------------- |
| rollup | GaugeSummary | A new gauge aggregate created by combining the input gauge aggregates |
