Syntax
Table.FillDown(table as table, columns as list) as table
About
从 table 指定位置返回一个表,其中上一个单元格的值将传播到指定单元格下方 columns 的 null 值单元格。
示例 1
返回一个表,其中列 [Place] 中的 null 值用表中的值填充。
用法
Table.FillDown(
Table.FromRecords({
[Place = 1, Name = "Bob"],
[Place = null, Name = "John"],
[Place = 2, Name = "Brad"],
[Place = 3, Name = "Mark"],
[Place = null, Name = "Tom"],
[Place = null, Name = "Adam"]
}),
{"Place"}
)
输出
Table.FromRecords({
[Place = 1, Name = "Bob"],
[Place = 1, Name = "John"],
[Place = 2, Name = "Brad"],
[Place = 3, Name = "Mark"],
[Place = 3, Name = "Tom"],
[Place = 3, Name = "Adam"]
})