Compartilhar via


Table.Transpose

Sintaxe

Table.Transpose(table as table, optional columns as any) as table

Sobre

Transforma colunas em linhas e linhas em colunas.

Exemplo 1

Transforme as linhas da tabela de pares de nome/valor em colunas.

Usage

Table.Transpose(
    Table.FromRecords({
        [Name = "Full Name", Value = "Fred"],
        [Name = "Age", Value = 42],
        [Name = "Country", Value = "UK"]
    })
)

Saída

Table.FromRecords({
    [Column1 = "Full Name", Column2 = "Age", Column3 = "Country"],
    [Column1 = "Fred", Column2 = 42, Column3 = "UK"]
})