Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Giving a value to a word

I would like to add a new column that gives a number corresponding to a word that appears in a different column.    If word APPROVED is in column 1, then "1" is shown in the new column If word NOT...
  • VahidDM's avatar
    VahidDM
    3 years ago

    Did you try to add a new column or a measure?

     

    test this for adding a new column with DAX:

    New Column = 
    SWITCH([column 1],
    "APPROVED ",1,
    "NOT APPROVED",2,
    "IN PROGRESS",3
    )

    If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

    Appreciate your Kudos!! 

     

    LinkedIn | Twitter | Blog | YouTube