Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 722 Bytes

table-transpose.md

File metadata and controls

40 lines (30 loc) · 722 Bytes
description title
Learn more about: Table.Transpose
Table.Transpose

Table.Transpose

Syntax

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

About

Makes columns into rows and rows into columns.

Example 1

Make the rows of the table of name-value pairs into columns.

Usage

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

Output

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