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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
srkase
Helper IV
Helper IV

BULK REPLACE OF TEXT

Hi ,

 

I have a table named prod_cable...

 

In that i have column name - dealer name , district

 

Instead of going and replacing the certain texts using replace in the query editor [ lots of replacements are there and hence it takes lots of time to apply query] , i need to perform this as a bulk option every time when i refresh my data.

 

example:

TEXTTOBEREPLACED
[CANCELLED]  
[CANCELED] 
[CANCELLED ]  
[CENCELLED]  
[cancelled] 
[CANCELLED] 
BANGALOREBENGALURU
HOSKOTEHOSOKOTE
PREMIER MARKETINGPREMIER ENGINEERS
THAMMAM PATTYTHAMMAMPATTY
A.D.P ELECTRICALS CHINGLEPETA.D.P.CO., CHENGALPATTU

 

Your advise is needed in this case.

 

Regards

 

SRK

 

1 ACCEPTED SOLUTION

Hi @srkase ,

 

check this out.

https://community.powerbi.com/t5/Desktop/Power-Query-Replace-multiple-substrings-in-one-column/td-p/...

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

3 REPLIES 3

Hi @srkase,

 

create a table with all the necessary replacements and merge this table with your prod_cable... table

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


I have already created a table and added that ...

 

But Sir,, what is the query to do this replacement each time when the data is being refreshed ?

 

But my problem is , the refreshed data every time is to be replaced with the replacement text.  The replacement text will be applicable for the dealer name starting with.  

 

see my data sample :

https://www.dropbox.com/s/bdm3kd4q92b3utq/sample%20data.xlsx?dl=0

 

 

 

Hi @srkase ,

 

check this out.

https://community.powerbi.com/t5/Desktop/Power-Query-Replace-multiple-substrings-in-one-column/td-p/...

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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