Forum Discussion
Replacing Text in columns
Hi,
I am a new learner and need help to do the following:
1. Change all 0 in column 20 to Italy
2. Change America in column 19 to Europe where column 20 is Italy
Thank you
libertetech you can use REPLACE for Column20 go to transform data -> Transform -> Replace data and then enter 0 in value to find and Italy in Replace with
for Column19, it is easier to create another column and use the following DAX expression and then remove column20
if [Column20] = "Italy" then "Europe" else [Coloum19]Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
2 Replies
- parry2kSuper User
libertetech you can use REPLACE for Column20 go to transform data -> Transform -> Replace data and then enter 0 in value to find and Italy in Replace with
for Column19, it is easier to create another column and use the following DAX expression and then remove column20
if [Column20] = "Italy" then "Europe" else [Coloum19]Check my latest blog post Comparing Selected Client With Other Top N Clients | PeryTUS I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- libertetechRegular Visitor
Thanks, got it..