Table.FillUp

Updated on

Table.FillUp is a Power Query M function that propagates the value of the next cell to null-valued cells above in specified columns. The function returns a new table with filled up values.

Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365

Syntax

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

Description

Table.FillUp propagates the value of a cell to the null-valued cells above in the column. It ensures continuity in columns of table by filling up null values.

Examples

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

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

Other functions related to Table.FillUp are:

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/powerquery-m/table-fillup

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy