Skip to content

Commit eac1958

Browse files
Merge pull request #287204 from jonburchel/patch-43
Update data-flow-window.md
2 parents 52f842f + 7c25eeb commit eac1958

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

articles/data-factory/data-flow-window.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.author: makromer
77
ms.subservice: data-flows
88
ms.topic: conceptual
99
ms.custom: synapse
10-
ms.date: 05/15/2024
10+
ms.date: 09/23/2024
1111
---
1212

1313
# Window transformation in mapping data flow
@@ -16,36 +16,34 @@ ms.date: 05/15/2024
1616

1717
[!INCLUDE[data-flow-preamble](includes/data-flow-preamble.md)]
1818

19-
The Window transformation is where you will define window-based aggregations of columns in your data streams. In the Expression Builder, you can define different types of aggregations that are based on data or time windows (SQL OVER clause) such as LEAD, LAG, NTILE, CUMEDIST, RANK, etc.). A new field will be generated in your output that includes these aggregations. You can also include optional group-by fields.
19+
The Window transformation is where you define window-based aggregations of columns in your data streams. In the Expression Builder, you can define different types of aggregations that are based on data or time windows (SQL OVER clause) such as LEAD, LAG, NTILE, CUMEDIST, and RANK. A new field is generated in your output that includes these aggregations. You can also include optional group-by fields.
2020

2121
:::image type="content" source="media/data-flow/windows1.png" alt-text="Screenshot shows Windowing selected from the menu.":::
2222

2323
> [!VIDEO https://www.microsoft.com/videoplayer/embed/RE4IAVu]
2424
2525
## Over
26-
Set the partitioning of column data for your window transformation. The SQL equivalent is the ```Partition By``` in the Over clause in SQL. If you wish to create a calculation or create an expression to use for the partitioning, you can do that by hovering over the column name and select "computed column".
26+
Set the partitioning of column data for your window transformation. The SQL equivalent is the ```Partition By``` in the Over clause in SQL. If you wish to create a calculation or create an expression to use for the partitioning, you can do that by hovering over the column name and selecting **Computed column**.
2727

2828
:::image type="content" source="media/data-flow/windows-4.png" alt-text="Screenshot shows Windowing Settings with the Over tab selected.":::
2929

3030
## Sort
31-
Another part of the Over clause is setting the ```Order By```. This will set the data sort ordering. You can also create an expression for a calculate value in this column field for sorting.
31+
Another part of the Over clause is setting the ```Order By```. This clause sets the data sort ordering. You can also create an expression for a calculate value in this column field for sorting.
3232

3333
:::image type="content" source="media/data-flow/windows-5.png" alt-text="Screenshot shows Windowing Settings with the Sort tab selected.":::
3434

3535
## Range By
36-
Next, set the window frame as Unbounded or Bounded. To set an unbounded window frame, set the slider to Unbounded on both ends. If you choose a setting between Unbounded and Current Row, then you must set the Offset start and end values. Both values will be positive integers. You can use either relative numbers or values from your data.
36+
Next, set the window frame as Unbounded or Bounded. To set an unbounded window frame, set the slider to Unbounded on both ends. If you choose a setting between Unbounded and Current Row, then you must set the Offset start and end values. Both values are positive integers. You can use either relative numbers or values from your data.
3737

38-
The window slider has two values to set: the values before the current row and the values after the current row. The Start and End offset matches the two selectors on the slider.
38+
The window slider has two values to set: the values before the current row and the values after the current row. The offset between start and end matches the two selectors on the slider.
3939

4040
:::image type="content" source="media/data-flow/windows6.png" alt-text="Screenshot shows Windowing Settings with the Range by tab selected.":::
4141

4242
## Window columns
4343
Lastly, use the Expression Builder to define the aggregations you wish to use with the data windows such as RANK, COUNT, MIN, MAX, DENSE RANK, LEAD, LAG, etc.
4444

45-
:::image type="content" source="media/data-flow/windows7.png" alt-text="Screenshot shows the result of the windowing action.":::
46-
4745
The full list of aggregation and analytical functions available for you to use in the Data Flow Expression Language via the Expression Builder are listed in [Data transformation expressions in mapping data flow](data-transformation-functions.md).
4846

4947
## Related content
5048

51-
If you are looking for a simple group-by aggregation, use the [Aggregate transformation](data-flow-aggregate.md)
49+
If you're looking for a simple group-by aggregation, use the [Aggregate transformation](data-flow-aggregate.md)
Binary file not shown.

0 commit comments

Comments
 (0)