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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Replacing string with null in power query

Hey there

 

I'm trying to replace a text string in power query with power query's standard null value. However, whatever the text I try to replace with the null all I get is the same value all over (as show in the following image).

pedrohp503_0-1650489077092.png

Why I do not simply replace it with ""? Because when I do so, I get two kind of blank values in my dataset:

pedrohp503_1-1650489321144.png

I've came across with this post, but it does not fix my problem because I have to replace several values at once.

 

Do someone knows how to do that replacement?

 

Thanks in advance.

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

The second part you mentioned is not empty. This means that you have at least one space character in your text.

1.png

If possible, you should first replace ' ' with '' as follows:

 

= Table.ReplaceValue(#"Renamed Columns"," ","",Replacer.ReplaceText,{"Column3"})

 

3.png

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

The second part you mentioned is not empty. This means that you have at least one space character in your text.

1.png

If possible, you should first replace ' ' with '' as follows:

 

= Table.ReplaceValue(#"Renamed Columns"," ","",Replacer.ReplaceText,{"Column3"})

 

3.png

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@Anonymous , null will be shown as blank in DAX. Sorry, but bot sure what is the issue here?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors