Sintaxe
M
Table.FirstN(table as table, countOrCondition as any) as tableParâmetros
- tabletableObrigatório
Tabela de entrada.
MTable.FromRecords({...})- countOrConditionanyObrigatório
Número de linhas ou condição a atender.
M2
Retorna
tableExemplo
M
Table.FirstN(
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"],
[CustomerID = 3, Name = "Paul", Phone = "543-7890"]
}),
2
)Resultado
M
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"]
})Mais informações
- Subgrupo
- Table