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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Antonio_garciaD
New Member

Create a new related table from two other tables

Hello, everyone

 

I need to create a table based on two other tables data, these tables are already related.

 

I have two tables with the following data.

Table 1:

Equipment, Failures

Table 2:

Date, Shifts

 

And I need to create another table with the all the info joined together so I can create an average for every single Equipment, as shown below.

 

Any suggestions? please

 

Antonio_garciaD_2-1707411010390.png

 

Thanks in advanced.

1 ACCEPTED SOLUTION

@Antonio_garciaD 

 

if you have a 1 to many relationship ,  between the two tables, 

and you want to get data from the 1-side to the many side,  you use related. 

 

related will gt the data from the one side to the many side, base on the relationship .

 

 

 

https://dax.guide/related/

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

View solution in original post

3 REPLIES 3
Antonio_garciaD
New Member

Hello, Daniel

 

If I merge the two tables using your method, my data won´t be sortered by the relationships I want to keep. 

 

Actually there are more than two tables that I need to Merge and for doing it I need to find values based on the key column, which in this case is "Equipment".

 

I think this might be possible with the "RELATED" DAX function, but I don´t know how.

 

Do you know how to do it? 

 

Thanks in advance.

@Antonio_garciaD 

 

if you have a 1 to many relationship ,  between the two tables, 

and you want to get data from the 1-side to the many side,  you use related. 

 

related will gt the data from the one side to the many side, base on the relationship .

 

 

 

https://dax.guide/related/

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

Daniel29195
Super User
Super User

@Antonio_garciaD 

 

 

you can create a new table base on these two tables ( using merge queries in power query ) .

 

go to power query. 

Daniel29195_0-1707418535654.png

 

 

Daniel29195_1-1707418610245.png

 

 

in the dropdowns, you select the tables you want to join . 

then in each table, you select the column that you want your join to be based on  .

 

NB :  you can choose the join type ( left, right,  full , .. .) 

 

 

let me know if this works for you .

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors