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
mtrevisiol
Helper IV
Helper IV

Replace multiple values in one column

Hi everyone, I'm new to the forum!

I've got some problems with power query. I have a column with some names and some of them are mispelled.

This is an example:

Name
Alex J
Alex J..

Alexander J.

Alex Jordan
Thomas
Thomas D.
Thomas D
Thomas D

This is the result I would like to see:

Name
Alex J.
Thomas D.

but when I try to replace the values more than ten times (I have 15 mispelled names), I get an error: "Internal error: An expression services limit has been reached."

Maybe this is due to the dimensions of the table? It has 42 columns and 49180 rows.

Thanks for the help!

1 ACCEPTED SOLUTION
gdarakji
Resolver III
Resolver III

I'm not sure if there is a replacement limit per column but there are several ways to solve your issue:

1- Create a new column for the Name and then write a switch or if else statement to replace mispelled names with the correct names

2- Create a table that maps the mispelled names with the correct names and then use the Name column of the new table or add add a new column in the original table with Related() or Lookupvalue() function

 

After doing one of the above, you can delete the original Name column so that it won't confuse report builders

View solution in original post

4 REPLIES 4
watkinnc
Super User
Super User

You could Text.Uppercase the columns in both tables,which would make it easier to do a 

Table.FuzzyJoin!

--Nate


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!

Thank you!

gdarakji
Resolver III
Resolver III

I'm not sure if there is a replacement limit per column but there are several ways to solve your issue:

1- Create a new column for the Name and then write a switch or if else statement to replace mispelled names with the correct names

2- Create a table that maps the mispelled names with the correct names and then use the Name column of the new table or add add a new column in the original table with Related() or Lookupvalue() function

 

After doing one of the above, you can delete the original Name column so that it won't confuse report builders

Thank you so much, I used the second option and it worked!

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.

Top Solution Authors
Top Kudoed Authors