Hello everyone,
I have the following problem: In a timesheet database I have two columns with department name. One is the Department of Origin, e.g. IT. The other is the Charged Dept., e.g. Finance.
What happens is that the entry of a person who performed a task to its own department comes with a null value at charged department column, so I would like to apply a text replacement on it, in a way that if the charged department is null it would be replaced by the origin department.
I can solve the problem by creating a new column and using If statements, but I would like to know if it is possible to apply Table.ReplaceValue (or something like that) to change the null entry to the value of the entry of the other column.
I tried the following code, without success:
#"Replaced Value" = Table.ReplaceValue(#"PreviousStep",null, each [OriginDept],Replacer.ReplaceValue,{"ChargedDept"})
Thank you, guys, in advance!