Forum Discussion

tweidner's avatar
tweidner
Helper I
5 years ago
Solved

Power Query, M Code, Replace Value based on value in another column

Hello Everybody,   Apologies in case this was answered already in this forum, but I wasn't able to find it...   I've one column (Division) in a table where I would like to change the value if a v...
  • CNENFRNL's avatar
    5 years ago

    tweidner 

    Table.ReplaceValue(#"Changed Type", each if [Country] = "Oman" then "Offshore" else [Division], null, (x,y,z) => y, {"Division"})