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