Table.Range
Devuelve las filas que empiezan en el desplazamiento especificado.
Syntax
Table.Range(
table as table,
offset as number,
optional count as number
) as table
Remarks
Devuelve las filas de table
a partir del offset
especificado. Un parámetro opcional, count
, especifica cuántas filas se devolverán. De forma predeterminada, se devuelven todas las filas a continuación del desplazamiento.
Examples
Example #1
Devolver todas las filas a partir del desplazamiento 1 en la tabla.
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
Devolver una fila a partir del desplazamiento 1 en la tabla.
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