cancel
Showing results for 
Search instead for 
Did you mean: 
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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!