Forum Discussion
Dom87326
4 years agoHelper II
Merge columns based on condition
Hello Experts! A have a large number of columns per table that end with 'Other'. How can I merge these columns (1 to 2) if the condition (column name to end with 'Other') gets satisfied in power ...
- 4 years ago
Use this. You will need to replace #"Previous Step" and Column1 as per you need.
Then you can right click on 2nd column and Remove column
= Table.ReplaceValue(#"Previous Step",each [Column1],each if [Column1]<>null and [Other]<>null then [Column1]&" "&[Other] else [Column1],Replacer.ReplaceValue,{"Column1"})
Dom87326
4 years agoHelper II
Hey Vijay_A_Verma ,
Ideally I'd like to see this merged column with 1st column name from the above:
Thanks!