Table.ColumnsOfType
Syntax
Table.ColumnsOfType(table as table, listOfTypes as list) as list
Asi
Vrátí seznam s názvy sloupců z tabulky table
, které odpovídají typům zadaným v listOfTypes
.
Příklad 1
Vrátí názvy sloupců typu Number.Type z tabulky.
Použití
Table.ColumnsOfType(
Table.FromRecords(
{[a = 1, b = "hello"]},
type table[a = Number.Type, b = Text.Type]
),
{type number}
)
Výstup
{"a"}