使用英语阅读

通过


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