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

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

Combine multiple intermediate time-weighted aggregate (TimeWeightSummary) objects produced by time\_weight() into a single intermediate TimeWeightSummary object. For example, you can use `rollup` to combine time-weighted aggregates from 15-minute buckets into daily buckets.

## Arguments

The syntax is:

```
rollup(
    tws TimeWeightSummary
) RETURNS TimeWeightSummary
```

| Name         | Type              | Default | Required | Description                                                     |
| ------------ | ----------------- | ------- | -------- | --------------------------------------------------------------- |
| time\_weight | TimeWeightSummary | -       | ✔        | The TimeWeightSummary aggregate produced by a time\_weight call |

## Returns

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