Hi all,
the following code combines 2 columns ColumnB1 and ColumnB2 based on the condition if ColumnB1 = null then ColumnB2 else ColumnB1:
Table.CombineColumns ( PreviousStep,{"ColumnB1", "ColumnB2"}, each if _{0} = null then _{1} else _{0}, "ColumnB")
is there a way to edit the code in order the condition to be based on another column, not part of the merge? if ColumnA = null then ColumnB2 else ColumnB1.
Thank you
the following code combines 2 columns ColumnB1 and ColumnB2 based on the condition if ColumnB1 = null then ColumnB2 else ColumnB1:
Table.CombineColumns ( PreviousStep,{"ColumnB1", "ColumnB2"}, each if _{0} = null then _{1} else _{0}, "ColumnB")
is there a way to edit the code in order the condition to be based on another column, not part of the merge? if ColumnA = null then ColumnB2 else ColumnB1.
Thank you