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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Creating 1 list of unique items from 2 tables

Hello guys!

I have been struggling for a day or two trying to combine data from 2 columns that are in 2 different tables (2 excel files). 
I'm pretty new to Power BI, please be gentle. I did try searching for solution, but most of them offered the solution for merging columns inside one table.

Two columns contain country names, I need to take values from "column 1" in one table and combine with "column 2" in another table (So, if "column 1" had 100 rows and "column 2" had 100 rows - I should end up with 200 rows) and delete duplicates so only unique values are left.

I hope it is clear what I'm trying to do.

Any help is greatly appreciated!

Thank you in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , A new table in DAX

 

Country = distinct(union(distinct(Table1[Country]),distinct(Table2[Country])))

 

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM

Power BI- Power Query: When I asked you to create common tables: https://youtu.be/PqfGW6pl1Sw

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , A new table in DAX

 

Country = distinct(union(distinct(Table1[Country]),distinct(Table2[Country])))

 

Power BI- DAX: When I asked you to create common tables: https://youtu.be/a2CrqCA9geM

Power BI- Power Query: When I asked you to create common tables: https://youtu.be/PqfGW6pl1Sw

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Awesome!

Thank you for the help!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors