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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
AliPoTD
Advocate II
Advocate II

Dax to merge 2 tables - which join?

Hello,

 

I'm fairly new to DAX and need some assistance to determine which join code I should use to merge 2 tables. Please can I ask for your help?

 

I have an Employees table, containing around 280 employees, which has a column "Job Role"

I have a Procedures table, which contains around 300 training courses. It contains a column "JobRole". 

Tables are unrelated.

 

For example:

Table_Employees

AliPoTD_0-1710841266513.png

Table Procedures

AliPoTD_1-1710841385104.png

Desired End result

AliPoTD_2-1710841560037.png

Please can you advise me of the DAX code I need to create a third table with the above desired result so that it lists all the procedure courses that each employee needs to take.

Many thanks in advance.

2 REPLIES 2
PhilipTreacy
Super User
Super User

Hi @AliPoTD 

 

Download example PBIX file with the example shown below.

 

You just need to create a relationship between the tables and then you can create a table visual showing the data you want.  You don't need to create another table in your file that will just be duplicating data you already have stored in there.

 

You also don't need to include both the Job Title and Job Role columns as they are the same thing.

 

tab-rel.pngtab-emp.png

 

regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Hi Phil,

Many thanks for your quick response.

You're right, I don't need an addoitional column of Job Role, didn't mean to add that when putting together the dummy data, there should be just one merged Job Title column.

 

Ok, so if i were to merge the tables, I would have a many to many, as there are many employees with the same job role, and many procedures for the same job role. I was led to believe I should avoid many-to-many relationships, or is this not the case?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.