Table.Range
Visszaadja a sorokat megadott eltolástól kezdve.
Syntax
Table.Range(
table as table,
offset as number,
optional count as number
) as table
Remarks
Visszaadja a(z) table sorait a megadott offset eltolástól kezdve. A választható count paraméterrel határozható meg a visszaadandó sorok száma. Alapértelmezés szerint a függvény az összes sort visszaadja az eltolástól kezdve.
Examples
Example #1
Visszaadja az összes sort az 1 eltolástól kezdve a táblából.
Table.Range(
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"],
[CustomerID = 4, Name = "Ringo", Phone = "232-1550"]
}),
1
)
Result:
Table.FromRecords({
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"],
[CustomerID = 4, Name = "Ringo", Phone = "232-1550"]
})
Example #2
Visszaad egy sort az 1 eltolástól kezdve a táblában.
Table.Range(
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"],
[CustomerID = 4, Name = "Ringo", Phone = "232-1550"]
}),
1,
1
)
Result:
Table.FromRecords({[CustomerID = 2, Name = "Jim", Phone = "987-6543"]})
Category
Table.Row operations