Forum Discussion
salgouda
3 years agoFrequent Visitor
Power Query replace column value based on another column
Hello there,
I am calculating employee retention and I need to change the null values in isActive column to be "false" if there's an end date which means the employee left, and "true" if end date is null which means the employee is still active.
this is the code I am using:
#"Replaced Value" = Table.ReplaceValue(#"Replaced OTH",each [isActive],each if [End Date] is null then "true" else [isActive],Replacer.ReplaceValue,{"isActive"})
but it doesn't seem to work.
Any tips?
Hi salgouda ,
if you enter an equal sign just at the start, the formula should work.