Forum Discussion

libertetech's avatar
libertetech
Regular Visitor
5 years ago
Solved

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
  • parry2k's avatar
    5 years ago

    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.