Table.FillDown
語法
Table.FillDown(table as table, columns as list) as table
關於
根據指定的 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"]
})