Forum Discussion
Calendar does not relate some tables
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")
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!
2 Replies
- amitchandak
Super User
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
- Syndicate_Admin
Administrator
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!