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
jayanthan
Helper III
Helper III

Join specific columns in multiple Tables

Hi there,

 

Is it possible to bring  of Product column from Tables 1 and 2  to new table as shown in below example? 

 

Table 1 Table 2 Expected Outcome
Product Value ProductValue Product 
C80 A60 A
D90 B70 B
      C
      D

 

Regards

Jayanthan

1 ACCEPTED SOLUTION
sturlaws
Resident Rockstar
Resident Rockstar

Hi @jayanthan,

you can do this with DAX and the 'New Table'-button in the modelling tab like this:

Table 3 = UNION(VALUES(Table1[product]);VALUES(Table2[Product]))

But if you want to create relationships between these tables, you will get an circular dependency error.

 

If you need relationships, you will have to do this in Power Query/Edit Queries. Use the Append-button, in the Home tab and select the two tables. This will do an union of your two tables. Then strip away the columns you don't need by right clicking the Product column and select 'Remove other columns'. Then still in the Home tab, locate the 'Remove Rows'-button and click on it. This will give you a short list of operations, select 'Remove duplicates'. Now click 'Close & apply' and you are done


 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

 

View solution in original post

2 REPLIES 2
sturlaws
Resident Rockstar
Resident Rockstar

Hi @jayanthan,

you can do this with DAX and the 'New Table'-button in the modelling tab like this:

Table 3 = UNION(VALUES(Table1[product]);VALUES(Table2[Product]))

But if you want to create relationships between these tables, you will get an circular dependency error.

 

If you need relationships, you will have to do this in Power Query/Edit Queries. Use the Append-button, in the Home tab and select the two tables. This will do an union of your two tables. Then strip away the columns you don't need by right clicking the Product column and select 'Remove other columns'. Then still in the Home tab, locate the 'Remove Rows'-button and click on it. This will give you a short list of operations, select 'Remove duplicates'. Now click 'Close & apply' and you are done


 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

 

Hi @sturlaws 

 

I have used the append option. It works well. Thank you so much

 

Regards

Jayanthan

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.