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
Kiran_yed
Employee
Employee

Power BI DAX Join error

Trying to join two tables based on a column name 'User_Id'.  'User_Id' column is present in both the tables for join purpose, but why is the below error coming? This error is same with NATURAL LEFT OUTER Join and NATURAL INNER JOIN.. Capture.PNG

Please Help! 

 

Thanks,

Kiran

2 REPLIES 2
Greg_Deckler
Super User
Super User

Right, so oddly enough you can't have columns with the same names when joining tables in DAX. You usually use something like SELECTCOLUMNS to not change the names of the columns (trust me, it doesn't make sense but it works). This is explained very well in @Phil_Seamark 's book, Beginning DAX with Power BI on pages 118-121.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks Greg, But can you tell me how does NATURALINNERJOIN work in my situation. what's the use of NATURALINNERJOIN and NATURAL LEFT OUTER JOIN, 

my sample table schema:

Table1: Partner_ID, User_Id

Table2: User_Id, User_Name,UserEmailId

can you please tell me how to inner join these two tables on User_Id?

 

 

Thanks in advance


@Greg_Deckler wrote:

Right, so oddly enough you can't have columns with the same names when joining tables in DAX. You usually use something like SELECTCOLUMNS to not change the names of the columns (trust me, it doesn't make sense but it works). This is explained very well in @Phil_Seamark 's book, Beginning DAX with Power BI on pages 118-121.


 

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.