I would like to replace text in "Client" column with value of "Company" if the value in "Project" column = Capacity. I can't figure out what is wrong with my formula below - can someone help review? I tried 2 versions:
Version 1
= Table.ReplaceValue(#"Replaced Project TO to Cap",
each [Client],
each if Text.Contains([Project],"Capacity") then "Company" else [Client],
Replacer.ReplaceText,{"Client"})
Version 2
= Table.ReplaceValue(#"Replaced Project TO to Cap",
each [Client],
each if [Project] = "Capacity" then "Company" else [Client],
Replacer.ReplaceText,{"Client"})
The original cells were blank and remained so after the formula was applied.
Version 1
= Table.ReplaceValue(#"Replaced Project TO to Cap",
each [Client],
each if Text.Contains([Project],"Capacity") then "Company" else [Client],
Replacer.ReplaceText,{"Client"})
Version 2
= Table.ReplaceValue(#"Replaced Project TO to Cap",
each [Client],
each if [Project] = "Capacity" then "Company" else [Client],
Replacer.ReplaceText,{"Client"})
The original cells were blank and remained so after the formula was applied.