---
title: rollup() | Tiger Data Docs
description: Combine multiple two-dimensional statistical aggregates
---

Since [1.3.0](https://github.com/timescale/timescaledb-toolkit/releases/tag/1.3.0)

Combine multiple intermediate two-dimensional statistical aggregate (`StatsSummary2D`) objects into a single `StatsSummary2D` object. For example, you can use `rollup` to combine statistical aggregates from 15-minute buckets into daily buckets.

For use in window function, see `rolling()`.

## Arguments

The syntax is:

```
rollup(
    ss StatsSummary2D
) RETURNS StatsSummary2D
```

| Name    | Type           | Default | Required | Description                                              |
| ------- | -------------- | ------- | -------- | -------------------------------------------------------- |
| summary | StatsSummary2D | -       | ✔        | The statistical aggregate produced by a `stats_agg` call |

## Returns

| Column | Type           | Description                                                                        |
| ------ | -------------- | ---------------------------------------------------------------------------------- |
| rollup | StatsSummary2D | A new statistical aggregate produced by combining the input statistical aggregates |
