如何从Power Query中的上一行获取列值?

我想从前一行获得一个值。

我尝试了这个post中build议的以下代码:

Table.AddColumn(#"Added index", "custom column", each {[Index]-1}[column name]) 

但它会抛出这个错误:

 Cannot use field access fot type List 

请帮忙,我做错了什么?

出现此错误的原因是{[Index]-1}是一个列表值,但您需要使用以下语法将表索引到表中: MyTable{index}

这看起来像:

 = Table.AddColumn(#"Added index", "custom column", each #"Added index"{[Index]-1}[My Column])