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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
paulfink
Post Patron
Post Patron

Merge two tables using DAX

hi guys,

 

need some help with the problem above.

 

I have two tables, table A and table B - A is old data from our old system and B is new data from our new system. They both have the same format and columns.

 

I want to combine these tables so that the all the data is in one single table but it should not add on to extra columns it needs to be add onto each other.

 

However, table A and B are DAX tables using CROSSJOIN with the calendar table so dates are split out.

 

This means i cant use query editor as it is not a query.

 

I have tried:

  • Using UNION and INTERSECT - i get an error saying "column with the name 'Column' already exists" ('Column' changes everytime i try change the formula).
  • Combining using Query Editor first then doing the CROSSJOIN - same error as above.

 

What should i do?

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@paulfink 

 

There different joins kinds, you may try NATURALINNERJOIN in your scenario. 

 

Reference:
NATURALINNERJOIN function (DAX) - DAX | Microsoft Docs

NATURALLEFTOUTERJOIN function (DAX) - DAX | Microsoft Docs

 


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@paulfink 

 

There different joins kinds, you may try NATURALINNERJOIN in your scenario. 

 

Reference:
NATURALINNERJOIN function (DAX) - DAX | Microsoft Docs

NATURALLEFTOUTERJOIN function (DAX) - DAX | Microsoft Docs

 


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@paulfink , union should work in this case. make sure you column names are the same or use selectcolumns, to rename columns and use them in union

https://docs.microsoft.com/en-us/dax/selectcolumns-function-dax

 

Also refer : https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.