Table.TransformRows
Transformuje řádky tabulky pomocí zadané funkce transformace.
Syntax
Table.TransformRows(
table as table,
transform as function
) as list
Remarks
Vytvoří seznam díky využití operace transform pro každý řádek v table.
Examples
Example #1
Převede řádky tabulky na seznam čísel.
Table.TransformRows(
Table.FromRecords({
[a = 1],
[a = 2],
[a = 3],
[a = 4],
[a = 5]
}),
each [a]
)
Result:
{1, 2, 3, 4, 5}
Example #2
Převede řádky numerické tabulky na textové záznamy.
Table.TransformRows(
Table.FromRecords({
[a = 1],
[a = 2],
[a = 3],
[a = 4],
[a = 5]
}),
(row) as record => [B = Number.ToText(row[a])]
)
Result:
{
[B = "1"],
[B = "2"],
[B = "3"],
[B = "4"],
[B = "5"]
}
Category
Table.Transformation