Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Good afternoon to tod@s, a pleasure to enter this forum,
I come across a table relationship problem.
I have the Calendar table, with which I move throughout the model, as far as dates are concerned.
In the canvas I am working on, HR, I use data from an "Employees" table, which, in summary, have the data in columns: ID_empleado, high date, low date, current status template (High or low).
This table is related to one of "Parties", by connecting with the key "Id_Empleado". Then, the "Parts" table is related to another called "work orders", using the key "Id_OT" (each part relates to a Id_OT). And finally, the "work orders" table is related to the "calendar" table by means of the opening date of each OT.
In summary, the relationship that arrives at the "Employees" table is as follows: Calendar ->Work orders -> "Parties" -> "Employees".
In order to count the existing casualties, I use this DAX: calculate(DISTINCTCOUNT(Employees[Id_operario]),Employees[Estado_plantilla]="Low")
Solved! Go to Solution.
@Syndicate_Admin , Work Order should be the fact
and Calendar, parties, and employees should act as dimensions.
Another copy of the employee should be used as a fact and should join with calendar.
How employee fact will work, you can check here
Thanks a lot! Resolved! I have been entering the program for a few weeks and there are logic errors that I have a hard time understanding.
Thanks again! Best regards!
Thanks a lot! Resolved! I have been entering the program for a few weeks and there are logic errors that I have a hard time understanding.
Thanks again! Best regards!
@Syndicate_Admin , Work Order should be the fact
and Calendar, parties, and employees should act as dimensions.
Another copy of the employee should be used as a fact and should join with calendar.
How employee fact will work, you can check here
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 67 | |
| 62 |