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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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

Anonymous
Not applicable

Awesome!

Thank you for the help!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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