Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Klal700
Frequent Visitor

Replacing blank values in Power Query

Hi All, 

 

I have a bit of a weird issue that I can't get my head around. 

 

I have a Region field in a table that has some blank values. I am replacing these blank values with the text "Undefined" using Replace Values in Power Query. This seems to work without any issues in Power Query. However, when I load the data, this change is not applied being for some reason. I still see blanks where I should be seeing undefined. 

 

Any thoughts on why this might be happening? 

 

Klal700_0-1691669765991.png

 

1 REPLY 1
BA_Pete
Super User
Super User

Hi @Klal700 ,

 

As far as Power Query is concerned, there's at least three items that would appear as "blanks":

null, "", and " ".

 

The quickest way to identify any/all of them that might be causing you trouble would be to:

-1- Filter your column, selecting any items in the filter list that appear as blank (or null if required).

-2- Right click on one of the blank cells and select 'Replace Values' and replace with your chosen substitute.

-3- Right click on any other blank cell that remains, repeat step -2-.

-4- Repeat steps -2- & -3- until no blanks remain.

 

If you check the code generated by each replace step, you'll probably find that what you see as blank values are actually distinct values, like "", "   ", "        " etc.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.