> 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/preview-data/combining-data/aggregate-data.md).

# Aggregate data

Aggregate data in Coupler.io to summarize, group, and calculate totals across your dataset. Create summary-level views from detailed source 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:

<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 url="<https://app.arcade.software/share/fSUR05iv4fFMq3gfD4gh>" flowId="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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
