> For the complete documentation index, see [llms.txt](https://docs.verbdata.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verbdata.com/data-transformations/building-transformations/transformation-steps/window-data.md).

# Window Data

Creates a column within the selected table which aggregates values based on the selected aggregation type, partition column and sorting column(s).

The aggregation functions are Minimum, Maximum, Average, Median, and Sum.

Data is initially partitioned based on selected column(s). Partitioning data arranges all similar values together within the table.

Values are then arranged within the partition and sorted based on secondary “order by” column(s).

The aggregation function is then performed on resulting sorted data within the selected input column.

The resulting created column is the ranked/sorted data with the values aggregated within each row as selected.

{% hint style="info" %}
Typical aggregation functions result in multiple rows outputting one value.&#x20;

Window Data aggregates within each row, resulting in aggregated values for each row.
{% endhint %}

Window Data also includes the Count function. This is the same as the Rank Data Row Number, which outputs a unique sequential value based on the partitioned column values. Rows with equal values will be ranked sequentially, and values will be counted by final row order (ascending/descending) and will not have ties.


---

# 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.verbdata.com/data-transformations/building-transformations/transformation-steps/window-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.
