Table.Skip

Table

Skips the first N rows of a table, or rows matching a condition.

Examples on this page use shared sample tables. View them to understand the input data before reading the examples below.

Syntax

Table.Skip(table as table, countOrCondition as any) as table

Parameters

NameTypeRequiredDescription
tabletableYesThe table to skip rows from.
countOrConditionanyYesA number specifying how many rows to skip, or a function that skips rows while the condition is true.

Return Value

tableA table with the first N rows removed, or the leading rows that satisfied the condition removed.

Remarks

Table.Skip removes rows from the beginning of a table. When passed a number, it skips exactly that many rows. When passed a condition function, it skips consecutive rows from the top while the condition is true — it stops skipping at the first row that fails the condition.

This is the complement of Table.FirstN: where Table.FirstN keeps the first N rows, Table.Skip removes them. A common use case is skipping header or metadata rows in files that have non-tabular content at the top.

Examples

Example 1: Skip the first 5 rows

Table.SelectColumns(Table.Skip(Sales, 5), {"OrderID", "CustomerName", "Product"})
Result
OrderID
CustomerName
Product
16BobThingamajig E
27CharlieWidget C
38DianaGadget B

Compatibility

Power BI Desktop Power BI Service Excel Desktop Excel Online Dataflows Fabric Notebooks