Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
oscarcu90
New Member

Merge columns but avoid duplicating values

Hi, I do not know if this is possible. I want to merge 2 columns but avoiding to merge values if the data is duplicated. How can I proceed?

 

oscarcu90_0-1717750189212.png

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@oscarcu90 

you can try to add a custom column in PQ

 

=if [Suppplier1]=[Supplier2] then [Suppplier1] else [Suppplier1]&[Supplier2]

11.PNG

 

or use DAX:

 

Column = if('Table'[Supplier2]='Table'[Supplier1],'Table'[Supplier1],'Table'[Supplier1]&'Table'[Supplier2])
 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
oscarcu90
New Member

Simple but worked as a charm, thanks!

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




ryan_mayu
Super User
Super User

@oscarcu90 

you can try to add a custom column in PQ

 

=if [Suppplier1]=[Supplier2] then [Suppplier1] else [Suppplier1]&[Supplier2]

11.PNG

 

or use DAX:

 

Column = if('Table'[Supplier2]='Table'[Supplier1],'Table'[Supplier1],'Table'[Supplier1]&'Table'[Supplier2])
 

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.