Table.FillDown is a Power Query M function that propagates the value of a previous cell to null-valued cells below in specified columns. The function returns a new table with filled down values.
Compatible with: Power BI Service Power BI Desktop Excel Microsoft 365
Syntax
Table.FillDown(
table as table,
columns as list,
) as table
Description
Table.FillDown returns a table from the specified table
where the value of a previous cell is propagated to the null-valued cells below in the columns
specified.
Examples
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"}
)
/* Output:
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"]
} )
*/
Related functions
Other functions related to Table.FillDown are:
2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy