> For the complete documentation index, see [llms.txt](https://docs.coupler.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coupler.io/functionality/data-set/combining-data/aggregate-data.md).

# Aggregate data

Data **AGGREGATION** in Coupler.io terms means summarizing and revealing key insights of your data by performing operations like sum, average, count, min, or max on specific columns and consolidating the results in the destination file.

{% embed url="<https://www.youtube.com/watch?v=RmA7_xnuZE0>" %}

### Concept <a href="#feature-description-gimyp" id="feature-description-gimyp"></a>

Let's take this example to understand this feature further. We have this source table:&#x20;

<div align="left"><img src="https://d33v4339jhl8k0.cloudfront.net/docs/assets/57fbf3029033600277a688ab/images/673735d2442d517d60d26a0d/file-Ccq8nTYtLm.png" alt="" width="375"></div>

**Goal**: We want to get a list of "Groups" with summarized "Amount" per each group.

### How to aggregate data? <a href="#how-to-aggregate-data-mc5ms" id="how-to-aggregate-data-mc5ms"></a>

{% @arcade/embed flowId="fSUR05iv4fFMq3gfD4gh" url="<https://app.arcade.software/share/fSUR05iv4fFMq3gfD4gh>" %}

{% stepper %}
{% step %}
After adding the needed sources, go to the "Transformations" step and either select **Aggregate** from the data preview window, or hit **+ Add transformation >> Aggregate data** option from the left sidebar:
{% endstep %}

{% step %}
Select the source to apply aggregation
{% endstep %}

{% step %}
Select Dimension(s) & Metric(s):
{% endstep %}

{% step %}
You can change formula to another from the list
{% endstep %}

{% step %}
Click the "Aggregate data" button and we will get the following results
{% endstep %}

{% step %}
After aggregating the data, you can apply other transformations such as: hide and reorder columns, filter and sort data, add a formula column, etc. to achieve the desired result:
{% endstep %}

{% step %}
You can also add more than one dimension as well as multiple metrics
{% endstep %}

{% step %}
If no further transformations are needed, proceed to the **Destinations** setup.
{% endstep %}

{% step %}
Add all needed settings for the destination. Don't forget to select designed Aggregation as Data to share:
{% endstep %}

{% step %}
Add the schedule if needed.
{% endstep %}

{% step %}
Save and Run the importer to check the results of data aggregation
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.coupler.io/functionality/data-set/combining-data/aggregate-data.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
