Forum Discussion

EimearC's avatar
EimearC
Frequent Visitor
2 years ago
Solved

Help with "if column values do not match another column values then..."

Hi there, I'm hoping someone can please assist me with this M code I am trying to impliment:    I have a small table called TableCR which has 5 values:   1-EXCELLENT 2-GOOD 3-FAIR 4-...
  • PhilipTreacy's avatar
    2 years ago

    Hi EimearC 

     

    Download example PBIX file

     

    Might be simpler to add a Custom Column

     

    if not List.ContainsAny(TableCR[RatingCheck], {[Rating]}) then "3-FAIR" else [Rating]

     

    then delete the old rating column and rename the new column you just created.

     

    Phil