Skip to content
Home » Power BI » Filling Down or Filling Up Missing Data in Power Query

Filling Down or Filling Up Missing Data in Power Query

Fill Up and Fill Down in Power Query Editor
5/5 - (3 votes)

In this blog, you will learn how to fill missing data in Power Query in Power BI. This is an important and common step in data cleaning, especially when working with incomplete datasets.

Sometimes, when you import data into Power BI, some columns may have blank values because the information is only mentioned once for a group of rows—like region names, product categories, or department names and the rest of the rows stay empty.

We will fix this problem using Power Query’s Fill Down and Fill Up options. This will help ensure that every row has the right information and is ready for proper analysis and reporting.

Filling down (or up) ensures that every row carries the right information by copying values into the empty cells. Let’s understand this with an example.

Sample Dataset (Sales):

Region Product Sales
North Product A 1000
Product B 1500
Product C 2000
South Product D 1800
Product E 2200
East Product F 1300
Product G 1700

Problem:

In the Region column, the region name appears only once, and the remaining rows are left blank. We want each product row to show its corresponding region.



Open Power Query Editor:

  • Go to Home → Transform data.
  • Select the Table: In Power Query, select the table containing your data (e.g., Sales).
1 - Power Query
1 – Power Query

Fill Down and Fill Up only work when the cells contain null values, not blanks. Make sure the blank values are converted to null.

Right-click on the column name, select Replace Values, leave the “Value to Find” box empty, and type null in the “Replace With” box. Then click OK.

3- Replace values in Power Query
3- Replace values in Power Query

Fill Down Missing Values:

  • Select the column, go to the Transform tab, and click on Fill Down.
  • Power Query will automatically fill down the last non-blank value into the blank cells below it.

Another way: Right-click on the Region column → Select Fill, then Down.

Power Query - Fill Down
Power Query – Fill Down

See the result:

Fill Down in Power Query Result
Fill Down in Power Query Result

Apply Changes:

  • Once the blanks are filled, go to Home → Close & Apply.

(Optional) Fill Up:

If the required data was below the empty cells, you could use Fill Up by right-clicking and selecting Fill Up instead.

Fill Up in Power Query
Fill Up in Power Query

Thanks for reading this post! I hope you found it helpful. Feel free to share it with others or your teammates so they can benefit from it too. 😊

Loading

Leave a Reply

Discover more from Power BI Docs

Subscribe now to keep reading and get access to the full archive.

Continue reading