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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
jcordovacor
Frequent Visitor

How to change a value to one that already exists without being identified as different in PowerQuery

Hello All,


I am trying to change a value called "undergraduate research" to "research" in one column. The value "research" already exists in that column. When I make this change with the following replace function (= Table.ReplaceValue(#"Replaced Value","undergraduate research","research",Replacer.ReplaceText,{"Institution Labels Name"}) ), I see the value changed to "research" but it is identified as a different value than the original "research" (in the 1st image they are identified as different values). My goal was to have the counts by "research" and "research" (previously "undergraduate research") get added in a PowerBi visual (2nd image). I would like to know how to fix this, thank you for your help.

 

jcordovacor_1-1675114526475.png

 

jcordovacor_0-1675114482501.png

 

1 REPLY 1
ppm1
Solution Sage
Solution Sage

Perhaps you have hidden characters or leading/trailing spaces. Try doing a Clean or Trim on that column after you replace values.

 

Pat

Microsoft Employee

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

Top Solution Authors
Top Kudoed Authors