Table.ColumnsOfType
Syntax
Table.ColumnsOfType(table as table, listOfTypes as list) as list
Om
Returnerar en lista med namnen på kolumnerna från tabellen table
som matchar de typer som anges i listOfTypes
.
Exempel 1
Returnera namnen på kolumner av typen Number.Type från tabellen.
Användning
Table.ColumnsOfType(
Table.FromRecords(
{[a = 1, b = "hello"]},
type table[a = Number.Type, b = Text.Type]
),
{type number}
)
utdata
{"a"}