Power Query Problems

How to Fill Missing Power Query Values by Identifier in WPS Office Excel

Bushra ParveenBushra Parveen Nov 13, 2026 869 views

Question details

The user needs to fill empty cells in related rows that share the same identifier in Power Query, using existing populated values from rows with that identifier.

Fill Missing Power Query Values by Identifier in WPS Office
Product
WPS Office Excel - Power Query
Device & OS
not provided
Scenario
The user has a table with multiple rows per identifier and missing values, and wants to carry populated values into empty cells across all rows that share that identifier.
Observed behavior
Rows sharing the same identifier contain blank cells where other related rows already have values, so the data is not consistent across related rows.
Before you start

Open the Power Query Editor and confirm which column is the identifier. Ensure empty cells are stored as null instead of blank text; otherwise Fill Up or Fill Down will not fill them.

Solution 1Recommended

Fill Missing Values Within Each Identifier Using Group By and Fill Up

Use this when each identifier can appear in multiple rows and values should be repeated only within rows that share the same identifier.

A direct Fill Up on the whole column can copy values across different identifier groups when rows are sorted incorrectly or contain gaps. Grouping by identifier first keeps the fill operation inside each related set of rows.

1
Open Power Query Editor

In WPS Office Excel, select your table and click Data > Get Data > From Table/Range to open the Power Query Editor.

2
Replace empty text with null

Select the value columns you want to fill, click Transform > Replace Values, leave Value To Find blank, type null in Replace With, and click OK.

3
Remove blank identifier rows

Click the filter arrow on the identifier column, clear the (Blank) checkbox, and click OK.

4
Group rows by identifier

Select the identifier column, click Home > Group By, keep the identifier as the grouping column, name the new column Data, choose Operation: All Rows, and click OK.

5
Fill within grouped tables

Click Add Column > Custom Column, name it FilledData, enter the formula Table.FillUp([Data], {"ValueColumn1","ValueColumn2"}) with your actual value column names, and click OK.

6
Expand and load

Remove the original Data column, click the expand icon on FilledData, select the value columns to expand, and click File > Close & Load.

Fill Missing Values Within Each Identifier Using Group By and Fill Up
Missing values filled: Populated values are now carried into empty cells only for rows that share the same identifier.
Power Query in WPS Office

Fill Missing Power Query Values by Identifier in WPS Office

In WPS Office Excel, open Power Query, replace blank cells with null, group rows by identifier, and use Table.FillUp within each group to carry existing values into empty related rows. Then load a clean table that remains compatible with Microsoft Excel.

  1. 1. Open Power Query: In WPS Office Excel, click Data > Get Data > From Table/Range to open your table in the Power Query Editor.
  2. 2. Convert blank cells to null: Select the value columns, click Transform > Replace Values, leave Value To Find blank, enter null in Replace With, and click OK.
  3. 3. Group by identifier: Select the identifier column, click Home > Group By, choose Operation: All Rows, and name the new column Data.
  4. 4. Fill inside each group: Click Add Column > Custom Column and use the formula Table.FillUp([Data], {"ValueColumn1","ValueColumn2"}) with your actual value column names.
  5. 5. Expand and load the table: Remove the Data column, expand the custom column with the filled values, and click File > Close & Load to return the result to your worksheet.
Fills missing values only within the same identifier instead of copying values across unrelated groups.Works with .xlsx, .xls, and .csv files in WPS Office, so existing Microsoft Excel workbooks remain compatible.Gives you free access to Power Query data cleanup tools without a Microsoft 365 subscription.Uses a familiar ribbon and query editor interface, which makes migration from Microsoft Excel straightforward.Offers a lightweight and fast workflow for consolidating or filling large Power Query tables.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Fill Up not work when my cells look empty?

The cells likely contain empty text instead of null. In Power Query, select the affected columns, click Transform > Replace Values, leave Value To Find blank, enter null in Replace With, and then apply Fill Up.

How do I prevent Fill Up from copying values from the next identifier?

Group rows by the identifier column using Home > Group By with Operation: All Rows, and apply Table.FillUp inside each grouped table. This keeps values within the same identifier group instead of filling across the whole column.

Can I create one consolidated row per identifier instead of filling every row?

Yes. In Power Query, group by the identifier with Operation: All Rows, add a custom column that returns Table.First(Table.FillUp([Data], {"ValueColumn1","ValueColumn2"})), then expand that column and load the result.

Does this Power Query method work with Microsoft Excel files?

Yes. WPS Office can open .xlsx, .xls, and .csv files, apply the Power Query steps, and save or load results that remain compatible with Microsoft Excel.