This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
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 query and new merged column name should be the same as before (i.e. 1)?
The end result ideally should display column 1 name, column 2 value and delete column 2 for all table.
Many thanks in advance!
Solved! Go to Solution.
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"})
Hi @Dom87326 ,
Could you tell me if @Vijay_A_Verma 's method helps you solve the issue?If it does, kindly Accept it as the solution.
More people will benefit from it. Or if you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file after removing sensitive data.
Best Regards,
Eyelyn Qin
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"})
Hey @Vijay_A_Verma ,
Ideally I'd like to see this merged column with 1st column name from the above:
Thanks!
Can you post the result for the screenshot posted?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.