Sintaxe
M
Table.ToColumns(table as table) as listParâmetros
- tabletableObrigatório
Tabela a converter.
MTable.FromRecords({[CustomerID = 1, Name = "Bob", Phone = "123-4567"], [CustomerID = 2, Name = "Jim", Phone = "987-6543"]})
Retorna
listExemplo
M
Table.ToColumns(
Table.FromRecords({
[CustomerID = 1, Name = "Bob", Phone = "123-4567"],
[CustomerID = 2, Name = "Jim", Phone = "987-6543"]
})
)Resultado
M
{{1, 2}, {"Bob", "Jim"}, {"123-4567", "987-6543"}}Mais informações
- Subgrupo
- Table