I'm new to power query, and I'm using the latest Excel (beta) release on Mac.
I currently have the following step:
Table.ReplaceValue(#"Replaced Value2","payment_v2","-1",Replacer.ReplaceText,{"type - Copy"})
It works to replace all cells of the column where the value is "payment_v2" into "-1".
Good.
Now I want to add a condition to this formula. I'd like to first check if the column "payee" is "X", and if it's X I want to replace the value by "1", not "-1". But if it's not X, then I want to replace the value by "-1" as intended by the step above.
I've tried to look up conditional statements in power query, and I've attempted a few things, but nothing works. I can detail what I tried and what the errors were if requested, but my question is really "how to handle an if statement as part of that step?".
Thank you