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
HJK
Frequent Visitor

I want to merge two tables with duplicates

Hi

 

I want to duplicate two tables and merge them using DAX.

How can i do that?

please see the screenshot below

 

1. Table A

HJK_0-1667889706767.png

 

2. Table B

HJK_1-1667889728710.png

 

3. Table C (Merge)

HJK_2-1667889747142.png

 

 
 
1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the picture down below, and the attached pbix file.

It is for creating a new table.

 

Jihwan_Kim_0-1667890285111.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


View solution in original post

3 REPLIES 3
Jihwan_Kim
Super User
Super User

Hi,

Please check the picture down below, and the attached pbix file.

It is for creating a new table.

 

Jihwan_Kim_0-1667890285111.png

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Thank you for your help.

1 more question.

 

How can I get only specific columns?

 

Hi, 

thank you for your feedback.

In case you want to select some columns, please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1667900775695.png

 

 

TableC =
SELECTCOLUMNS ( CROSSJOIN ( TableA, TableB ), "A", TableA[A] )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


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.

Top Solution Authors