Forum Discussion

rayinOz's avatar
rayinOz
Helper III
9 years ago
Solved

Replacing text in one column based on another column

Hello,   In PowerBI Desktop, I am wanting to replace text in one column based on what is in another column.   I have a tabled called UoM-TrainMe-Report. I have a column called Division and the ot...
  • PowerBIUser3's avatar
    9 years ago

    If you don't mind creating another column you can create a calculated column and use dax.

    NewDivision = IF([organisation / portfolio] = "ZYX", "other", [Division])

     

    If you have multiple organisations / portfolios values you want to do this for you can use OR or the logical or operator symbol ||

    https://msdn.microsoft.com/en-us/library/ee634951.aspx