Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hello everyone,
I have been stuck on this one for a while now. I have 2 dim tables:
I have fact table for OPERATION_HISTORY and ATTENDANCE
In the contract table is a list of productions for company, the employes is list of employes.
Operation_history is table containig information about operations and time needed for work. The attendance have information about how long the employe was present in work.
I would like to calculate the productivity by dividing the operation history by attendance.
I want to be able do to it for the contract and individuals.
Here is the model view:
The result is this:
When filtering the contract all is fine. But when I filter individuals:
It correctly sums the attendance but it will sum all operation history.
I can't create the relation between employes and operation history because I already have the relation between contract and employes. If I remove the relation beween contract and employes and have relation between employes and operation history I get the same result but for attendance.
Can you point me in some direction how to solve this problem?
Many thanks.
Solved! Go to Solution.
@IvoM I see that there's an inactive relationship between employes and operation history. Have you tried using the USERELATIONSHIP DAX function in your measure that involves both those tables?
@IvoM I see that there's an inactive relationship between employes and operation history. Have you tried using the USERELATIONSHIP DAX function in your measure that involves both those tables?
I had no idea this was possible 😊 It opens up a whole new world of possibilities. Thank you so much, it solved my problem.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
55 | |
55 | |
37 | |
30 |
User | Count |
---|---|
78 | |
64 | |
45 | |
42 | |
40 |