Table.Transpose
Table.Transpose(table as table, optional columns as any) as table
Gör kolumner till rader och rader i kolumner.
Gör raderna i tabellen med namn/värde-par till kolumner.
Användning
Table.Transpose(
Table.FromRecords({
[Name = "Full Name", Value = "Fred"],
[Name = "Age", Value = 42],
[Name = "Country", Value = "UK"]
})
)
utdata
Table.FromRecords({
[Column1 = "Full Name", Column2 = "Age", Column3 = "Country"],
[Column1 = "Fred", Column2 = 42, Column3 = "UK"]
})