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
TeunVerhagen11
Regular Visitor

Measure combining two tables on same column value

Hi all,

 

Im trying to calculate the efficiency % with the use of two tables.

 

The model looks like this:

 

TeunVerhagen11_0-1633432301178.png

 

So the data that is necessary to calculate the efficiency is connected to a fact table containing all employee data. The relationship uses the employee code. This relationship is necessary for other purposes withing the dataset so it cannot be changed.

 

The activity and logging table look as follows:

 

TeunVerhagen11_1-1633432435127.pngTeunVerhagen11_2-1633432447462.png

 

Table 1 contains all executed activities and a predetermined time in within the activity should be executed. (Standard time). Next to that, the activities are classified in working categories. (Category).

 

Table 2 contains the time logged by employees. They log time by selecting a working category.

 

So in order to calculate the efficiency I started with the formula: Standard Time Earned = SUM(Standard Time). The calculation for efficiency should be: Standard Time Earned / Time Logged (see example below).

 

TeunVerhagen11_3-1633432806227.png

 

The problem that I face is that no connection between the working categories exist (because of the employee relationship). I think the solution lies in creating this connection within the measure but I have no idea how to do this.

 

Could someone help me with this? If more information is needed I can provide it.

 

Many thanks in advance.

 

Teun

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Create a new dimension table for Category (as you have done with employee)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
TeunVerhagen11
Regular Visitor

Wow yeah it really is that easy. Thanks very much.

PaulDBrown
Community Champion
Community Champion

Create a new dimension table for Category (as you have done with employee)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






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.