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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
duycao
Frequent Visitor

Combine column value from multiple table

Hi there,

 

I'm seeking your help on how we can creating a new column that combines value from multiple columns from different tables.

In particular, I have at least 2 tables, for example

 

Table 1:

Customer Name |    ID   |     DOB

A                        

B

C

Table 2:

Customer Name |    ID   |     Address

A

B

E

F

 

Expected result: I wanna have the list of unique Customer name from Table 1, Table 2 as well as other tables as below

Customer Name

A

B

C

E

F

 

Thank you for your help!

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

Hello @duycao 

You can create a calcualted table that give you the unique list from both tables like so.

 

Combined Table = 
DISTINCT(
    UNION(
        DISTINCT(Table1[Customer Name]),
        DISTINCT(Table2[Customer Name])
    )
)

 

 

You can continue to add the additional source tables in this one calculation.

 

Combined Table = 
DISTINCT(
    UNION(
        DISTINCT(Table1[Customer Name]),
        DISTINCT(Table2[Customer Name]),
        DISTINCT(Table3[Customer Name]),
        DISTINCT(Table4[Customer Name]),
        DISTINCT(Table5[Customer Name])
    )
)

 

 

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

The ID fields are the same in both tables? And I understand you want to do it in Power Query?

Best
D
jdbuchanan71
Super User
Super User

Hello @duycao 

You can create a calcualted table that give you the unique list from both tables like so.

 

Combined Table = 
DISTINCT(
    UNION(
        DISTINCT(Table1[Customer Name]),
        DISTINCT(Table2[Customer Name])
    )
)

 

 

You can continue to add the additional source tables in this one calculation.

 

Combined Table = 
DISTINCT(
    UNION(
        DISTINCT(Table1[Customer Name]),
        DISTINCT(Table2[Customer Name]),
        DISTINCT(Table3[Customer Name]),
        DISTINCT(Table4[Customer Name]),
        DISTINCT(Table5[Customer Name])
    )
)

 

 

 

 

Hi there, this works perfectly. Thank you!

Anonymous
Not applicable

Hi @duycao ,

If your problem has been resolved, could you please mark the helpful post as Answered? It will help anyone in the community find the solution easily if they face the same problem with you. Thank you.

Best Regards

Rena

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors