选择除固定列以外的所有 Power Query (Excel)

choose all except fixed columns Power Query (Excel)

假设我在 Power Query 中有一个 table,其中列数不固定(它根据我从数据库中获取的数据而变化)。

问题是我想稍后填写值,为此我有一个代码

Table.FillDown(#"Razvrščene vrstice",{"Column2","Column3","Column4","Column5","Column6","Column7", "Column8", "Column9", "Column10"})

当然,当我少写一栏时,整个事情就会崩溃 ('Cannot find column Column10')...

有什么办法解决这个问题吗?例如:'choose all but the first two columns and fill them down'?

谢谢, 马蒂亚

这有帮助吗?

如果我从这个 table 开始,命名为 Table1:

我使用以下查询:

let
Source = Table1,
#"Filled Down" = Table.FillDown(Source,List.RemoveMatchingItems(Table.ColumnNames(Source),{"Column1", "Column2"}))
in
#"Filled Down"

我明白了:

{"Column1", "Column2"} 是在填充过程中要跳过的列的名称。