Forum Discussion
Matrix Table Hierarchy Display Daily/Monthly/Yearly Result
- 3 years ago
Finally found the solution.
No joint was necessary.
Creating a measure to count the number of robots, modify the TotalUsed hours by amending theUtilizationRobot = DIVIDE([Utilization],[RobotCount])
By linking the relationship correctly and all work.
Again, thanks to ToddChitt for the great help! I have learnt a lot! 🙂
>>All calculation (column and measure) are created directly from the DateTable. I didnt create any calendar table...<<
And therein lies your problem.
How do you calculate the utilization for a day that had no Time Used? Let's look at the 5 rows for February only.
What is the utilization for, say, 2/13/2023? What is the denominator for that? You don't have one.
Create a Date table with this statement:
In the screenshot above, notice how we can calculate Utilization for any individual day that has Time Used, AND the monthly total is accurate.
The key is to have a CONTIGUOUS DATE TABLE (one row for every day in the calendar) like i said in one of the early responses.
Dang. This looks interesting. Do you mind to attach the files. It will be easier for me. A big thanks for the help!