Skip to main content

Table.FillDown

Propagates the value of a previous cell to the null-valued cells below in the column.

Syntax

Table.FillDown(
table as table,
columns as list
) as table

Remarks

Returns a table from the table specified where the value of a previous cell is propagated to the null-valued cells below in the columns specified.

Examples

Example #1

Return a table with the null values in column [Place] filled with the value above them from the table.

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"}
)

Result:

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"]
})

Category

Table.Transformation