Skip to main content

Table.FillUp

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

Syntax

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

Remarks

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

Examples

Example #1

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

Table.FillUp(
Table.FromRecords({
[Column1 = 1, Column2 = 2],
[Column1 = 3, Column2 = null],
[Column1 = 5, Column2 = 3]
}),
{"Column2"}
)

Result:

Table.FromRecords({
[Column1 = 1, Column2 = 2],
[Column1 = 3, Column2 = 3],
[Column1 = 5, Column2 = 3]
})

Category

Table.Transformation