Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I want to replace multiple strings values from a column in one single step in query editor.
I tried the following but is not working:
#"Replaced China/Hong Kong" = Table.ReplaceValue(#"Removed Errors",
each [Country] = "China/Hong Kong","China",
[Country] = "China/Mainland","China",
[Country] = "China/Taiwan","China",
Replacer.ReplaceText,{"Country/Location"}),
I need to replace the following strings with "China":
"China/Hong Kong"
"China/Mainland"
"China/Taiwan"
Any ideas ?
Thanks !!
Solved! Go to Solution.
Hi @cristianml ,
According to your description, here is my solution.
It cannot work if you replace multiple different values in a column at the same time. You can use "repalce value" three times in advanced editor.
Or you can create custom columns. If you want to replace all areas related to China with "China", please use "contain".
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @cristianml ,
According to your description, here is my solution.
It cannot work if you replace multiple different values in a column at the same time. You can use "repalce value" three times in advanced editor.
Or you can create custom columns. If you want to replace all areas related to China with "China", please use "contain".
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@cristianml , I think you have to do that operation three times. of with help Text.Contains create a new column
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 52 | |
| 41 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 107 | |
| 103 | |
| 40 | |
| 33 | |
| 25 |