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
zingiwng
Frequent Visitor

How do I substitute distinct text from a text field.

I'm trying to substitiue multiple values from a text column to use in a word cloud. Following this question I am able to filter out most the words I need. However, when I try to with "a", "i", "or", it will remove every every instances of that.

 

I.E. Have => hve

     Alligator => llgt

What can I do to substitue every distinct instance of "a", "i", and "or" from a text column?

Thanks

 

zingwing

1 ACCEPTED SOLUTION
Phil_Seamark
Employee
Employee

Hi @zingiwng

 

You could try the REPLACE function in the Query Editor and create several rules

replace.png

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

3 REPLIES 3
Phil_Seamark
Employee
Employee

Hi @zingiwng

 

You could try the REPLACE function in the Query Editor and create several rules

replace.png

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

@Phil_Seamark If I use Replace Values in the query editor will it only run the replacement on existing data or will it also run on all future data?

Anonymous
Not applicable

@zingiwng

The Query will re-run every time the data is refreshed. So the answer is yes, it will work on all future data.

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.