Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 36 | |
| 33 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 72 | |
| 38 | |
| 35 | |
| 26 |