Table.ColumnsOfType
返回带有与指定类型相匹配的列名的列表。
Syntax
Table.ColumnsOfType(
table as table,
listOfTypes as list
) as list
Remarks
返回带有与 listOfTypes 中指定的类型相匹配的表 table 中的列名的列表。
Examples
Example #1
返回表中类型 Number.Type 的列名。
Table.ColumnsOfType(
Table.FromRecords(
{[a = 1, b = "hello"]},
type table[a = Number.Type, b = Text.Type]
),
{type number}
)
Result:
{"a"}
Category
Table.Column operations