Table.ColumnsOfTypeTable.ColumnsOfType
SyntaxSyntax
Table.ColumnsOfType(table as table, listOfTypes as list) as list
InfoAbout
Gibt eine Liste mit den Namen der Spalten aus Tabelle table
zurück, die mit den in listOfTypes
angegebenen Typen übereinstimmen.Returns a list with the names of the columns from table table
that match the types specified in listOfTypes
.
Beispiel 1Example 1
Gibt die Namen von Spalten vom Typ "Number.Type" aus der Tabelle zurück.Return the names of columns of type Number.Type from the table.
Table.ColumnsOfType(
Table.FromRecords(
{[a = 1, b = "hello"]},
type table[a = Number.Type, b = Text.Type]
),
{type number}
)
aa |