Table.Transpose
Синтаксис
Table.Transpose(table as table, optional columns as any) as table
О программе
Делает столбцы строками и строками в столбцы.
Пример 1
Сделайте строки таблицы пар "имя-значение" в столбцы.
Использование
Table.Transpose(
Table.FromRecords({
[Name = "Full Name", Value = "Fred"],
[Name = "Age", Value = 42],
[Name = "Country", Value = "UK"]
})
)
Выходные данные
Table.FromRecords({
[Column1 = "Full Name", Column2 = "Age", Column3 = "Country"],
[Column1 = "Fred", Column2 = 42, Column3 = "UK"]
})