- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Relations with tables
Hello everyone,
I have been stuck on this one for a while now. I have 2 dim tables:
- contract
- employes
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I had no idea this was possible 😊 It opens up a whole new world of possibilities. Thank you so much, it solved my problem.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-09-2024 06:05 AM | |||
01-20-2025 06:47 AM | |||
09-27-2024 07:15 AM | |||
10-11-2024 10:15 AM | |||
09-25-2024 01:24 AM |
User | Count |
---|---|
121 | |
104 | |
85 | |
52 | |
46 |