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! 🙂
Also, In your table of Dates, only [AvailableC] column is correct. Remove [Total Available C] measure.
Next, the MEASURE of Total Available should be in the Cross Join Table. It should SUM ( [Available C] ) in the Cross Join Table
My replied on Tuesday was lost? Weird...
Here is result:
https://drive.google.com/file/d/1LXVPHYu7gl1kOGGnUpFRWDB-dxB4flJS/view?usp=sharing
The answer to your previous question is 2:
TWO: Because there are FIVE robots 'associated' with Kyoto, the number of AVAILABLE hours is 50 (5 Robots times 10 hours each) so the Utilization would be 20.97/50 = 41.94%
Moving Total Available to the CrossJoinTable provide incorrect result:
- ToddChitt3 years ago
Super User
You ready for this? Another CROSS JOIN with this text:
City_Dates = CROSSJOIN(SUMMARIZE('List', List[City], "Number of Robots", COUNT('List'[IDTag])),'My Dates')Then add these two columns:Hours Per Day Per City = [Number of Robots] * [Available]JOIN Key City Date = [City] & "-" & [Date]And this measure:Total Available = SUM( 'City_Dates'[Hours Per Day Per City])Then add that JOIN Key column above to the other CROSS JOIN table, and create a relationship there. Make it BOTH ways filter.Finally, your calculation for Utilization:Total Used = (SUM('DataTable'[DurationWorking]) + SUM('DataTable'[DurationIdle]))*24 (you have this already)Utilization = DIVIDE( [Total Used], [Total Available], 0)I have saved my changes to your most recent model here:
Cheers!
- jaysoulz3 years ago
Helper I
Thanks ToddChitt for the file! I got lost with so many joins and following your guide I didnt get to the same result, luckily your file make it clearer.
By looking at your result, I think we are spreading in every place... I am not even sure if we need to do the join to be honest.
The main goal is to get the utilization of the robots for day, month. Utilization group per city, region and country. The calculation should be easy enough easy:
Total Used / (Total Robots * 10hours * Working Day).
The Total Robots should be distinct count from table List "A PART"
We have to make sure that it is the Total Robots and not the number of working robot.
So, for Kyoto, I have 5 robots, Montreal 2, New York 3... Which I indicate in the table (top right).
If we follow that equation, we should get the correct result for all. My bad for all the confusion (I got confused myself). - jaysoulz3 years ago
Helper I
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! 🙂