Table.Range
Table.Range(table as table, offset as number, optional count as nullable number) as table
Vráti riadky z table
počnúc zadanou offset
. Voliteľný parameter count
určuje, koľko riadkov sa má vrátiť. Predvolene sa vrátia všetky riadky po zadanom posune.
Vrátenie všetkých riadkov začínajúcich na posune 1 v tabuľke.
používania
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
)
výstupu
Table.FromRecords({
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"],
[CustomerID = 4, Name = "Ringo", Phone = "232-1550"]
})
Vrátenie jedného riadka začínaného na posune 1 v tabuľke.
používania
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
)
výstupu
Table.FromRecords({[CustomerID = 2, Name = "Jim", Phone = "987-6543"]})