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
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
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.

Top Solution Authors