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! 🙂
***My bad working and idle was decimal, so I had to x24 to make it hours.
https://drive.google.com/file/d/10bu0d5DIbbmuzQtxqG2QfLNJ1hCfoKQC/view?usp=drive_link
https://drive.google.com/file/d/1N-pkOnuPEQQxrb-FTQzzmoNKw4xONXmx/view?usp=drive_link
Here is the data for February and March 2023:
https://docs.google.com/spreadsheets/d/1QAYUlHds-yPGfwfilMFk84AOKDpim_04/edit?usp=sharing&ouid=114778904675770620299&rtpof=true&sd=true
All calculation (column and measure) are created directly from the DateTable. I didnt create any calendar table...
>>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.
- jaysoulz3 years ago
Helper I
Dang. This looks interesting. Do you mind to attach the files. It will be easier for me. A big thanks for the help!
- jaysoulz3 years ago
Helper I
Not sure if I can say working or not. When I select another employee, I am seeing discrepancy, so looks like 95-99% work. Really thanks for the help!
I had to mod the formula:
Utilization = DIVIDE( (SUM('DateTable'[DurationWorking]) + SUM('DateTable'[DurationIdle]))*24, SUM('My Dates'[Available]), 0)