Syrophenikan
New member
- Joined
- Jul 25, 2023
- Messages
- 4
- Reaction score
- 0
- Points
- 1
- Excel Version(s)
- 365
(File with bug is attached)
Potential bug in Power Query's Table.Skip function. Tested in the following:
However, if the step before the "remove 10 rows from the top" is a sort function using Table.Sort, the results are wildly unpredictable. Various unrelated rows from the table are deleted and the result is resorted by what appears to be total randomness.
If you sort by multiple criteria (ex: sometimes sorting by two columns, other times by three or more), the Table.Skip function works as expected, removing the top N rows from the table.
Removing the Table.Sort step makes the Table.Skip function work properly.
The source table is only 360 rows.
Potential bug in Power Query's Table.Skip function. Tested in the following:
- Excel - using version 2.120.7004.1 64-bit
- Power BI - using version 2.119.870.0 64-bit (July 2023)
However, if the step before the "remove 10 rows from the top" is a sort function using Table.Sort, the results are wildly unpredictable. Various unrelated rows from the table are deleted and the result is resorted by what appears to be total randomness.
If you sort by multiple criteria (ex: sometimes sorting by two columns, other times by three or more), the Table.Skip function works as expected, removing the top N rows from the table.
Removing the Table.Sort step makes the Table.Skip function work properly.
The source table is only 360 rows.