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"]
})