# Rollup

## What does it do?

Searches down a column of a dataset for a key and returns the selected aggregation of the value of a specified column in all rows found.

## How to use it?

In order to use the lookup step, click on the **Add Column** button and then **Rollup**&#x20;

<figure><img src="/files/HYIqVPk5I6OLzGT16buC" alt=""><figcaption><p>Add Rollup</p></figcaption></figure>

## How to configure it?

<figure><img src="/files/fFYwomlWcKeVotogytlV" alt=""><figcaption><p>Configuring Rollup</p></figcaption></figure>

To configure a roll you need two datasets at least in your canvas. Select the dataset you want to rollup the value from in the dropdown (in order to help you locate the dataset on the canvas it should be blinking when hovered on the dropdown). Then select the column that will be the output of the rollup as well as the aggregation type (the one you want the value to be displayed) and finally select the keys that will be used to identify how the lines should be merged.

In the example above we want to display the sum of`conversions`  coming from another dataset under the name of  `new_campaign` on lines that matches `campaign_id` *=* `customer_id`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.whaly.io/data-management/workbench/model-data/flow-models/flow-steps/rollup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
