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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

dealing with blank values when consuming xlsx?

I am in 'power query editor'.

 

And I tried replacing a blank value with nulls... it was impossible, I tried one space, 2 spaces, and I couldn't replace it.

 

Then I realized that I can copy paste from there, i copy pasted the blank and I believe its 5 spaces, I used that and it worked.

 

Is there a less cumbersome way of solving this?  (I am consuming from an xlsx file, we does it come with blank cells as 5 or 6 spaces?)

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@Anonymous 

 

Probably these spaces already exist in the source files.

 

Best way to deal with this is remove all spaces from this column (if it doesnt affect existing values) and the replace blanks with nulls.

 

Go to Power Query --> Right click on the column --> Replace Values

Value to Find: press spacebar once

Replace With: Leave it as it. Dont press any button

 

Click ok and check the reults.

If everything looks ok ten replace blanks with nulls

View solution in original post

1 REPLY 1
themistoklis
Community Champion
Community Champion

@Anonymous 

 

Probably these spaces already exist in the source files.

 

Best way to deal with this is remove all spaces from this column (if it doesnt affect existing values) and the replace blanks with nulls.

 

Go to Power Query --> Right click on the column --> Replace Values

Value to Find: press spacebar once

Replace With: Leave it as it. Dont press any button

 

Click ok and check the reults.

If everything looks ok ten replace blanks with nulls

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.