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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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