我有一个关于Power Query的表格:

我希望根据前一行更新支出和残差,如下例所示:

这个是可能的吗?
发布于 2020-04-17 11:01:56
这是一种方法,添加一个索引和一行累积函数
let
cum_add = (x) => List.Sum(Table.SelectRows(#"Added Index", each [Index] <= x) [Remnant]),
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Added Index" = Table.AddIndexColumn(Source, "Index", 0, 1),
#"Added Cumulative" = Table.AddColumn(#"Added Index", "Custom", each cum_add([Index] ))
in
#"Added Cumulative"要执行此操作,您需要进入高级编辑器
https://stackoverflow.com/questions/61258370
复制相似问题