> For the complete documentation index, see [llms.txt](https://documentation.astera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.astera.com/dataprep/transforming-data/aggregate.md).

# Aggregate

In this document, you will explore how to aggregate in Astera Dataprep.   &#x20;

1. To aggregate in Astera Dataprep, you can click on the *Transform* option in the toolbar and select *Aggregate* option from the drop-down.

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FN7LTRgYAi76eIeH4uguH%2F0.png?alt=media)

2. Once selected, the *Recipe Configuration – Aggregate* panel will open.&#x20;

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FvTf5buT4xkYo14ablX4O%2F1.png?alt=media)

3. Here, you can configure the *Aggregate* section by selecting column names in the *Name* drop-down, adding any expressions in the *Calculation* column, and selecting an *Aggregate Function* from the drop-down with all the aggregate functions.

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FHNdS00F0VDwVGAIXbNHW%2F2.png?alt=media)

4. Once done, you can click on *Apply* ![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2F7VsSbSLkUrOXP5XbWHhi%2F4.png?alt=media)

Now, in the grid, you can see that the columns have been grouped by the *EmployeeID* and a *Count* aggregate function has been applied to the *OrderID* field.

![](https://3181888596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzEifS4h8yurLAAwiGNX2%2Fuploads%2FQXx4bGRLmobNWNw5b4qt%2F4.png?alt=media)

This concludes the document on using *Aggregate* in Astera Dataprep.


---

# 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://documentation.astera.com/dataprep/transforming-data/aggregate.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.
