我有多列,其名称以“-Hello”和“-再见”结尾。因此,我尝试使用Table.SelectColumns和某种正则表达式来选择具有此模式的所有列。
Table.SelectColumns
= Table.SelectColumns(Source, List.Select(Table.ColumnNames(Source), each Text.EndsWith(_," - Goodbye") or Text.EndsWith(_," - Hello")))