Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a matrix that displays the max operating hours for each facility per year and month that come from reports with a WI identification as such:
But I would like to get it so that the Total column shows a sum for that year. (This matrix continues on the to right for the next years as well with their own corresponding Total columns). Currently I am making it only consider 'WI' reports by simply filtering the matrix for 'WI', so I am not sure if I would need to do it differently in this scenario.
I have tried a couple of solutions I found on this forum, but haven't gotten it to work yet.
Here is a sample containing a dataset for a facility in the year of 2015.
I want to basically have a table identical to the one above, but with the Total row summing the previous max, and each column showing the max Hours for that facility in that year and month where the FromToID is = 'WI'
Year | Month | ReportingFacilityID | FromToID | Hours |
2015 | February | ABBT0127333 | 0 | |
2015 | February | ABBT0127333 | 0 | |
2015 | February | ABBT0127333 | GS | 0 |
2015 | February | ABBT0127333 | 0 | |
2015 | February | ABBT0127333 | 0 | |
2015 | February | ABBT0127333 | WI | 0 |
2015 | February | ABBT0127333 | 0 | |
2015 | February | ABBT0127333 | 0 | |
2015 | February | ABBT0127333 | 0 | |
2015 | February | ABBT0127333 | 0 | |
2015 | February | ABBT0127333 | 0 | |
2015 | February | ABBT0127333 | WI | 0 |
2015 | February | ABBT0127333 | WI | 668 |
2015 | February | ABBT0127333 | WI | 0 |
2015 | February | ABBT0127333 | WI | 0 |
2015 | February | ABBT0127333 | WI | 0 |
2015 | March | ABBT0127333 | 0 | |
2015 | March | ABBT0127333 | 0 | |
2015 | March | ABBT0127333 | GS | 0 |
2015 | March | ABBT0127333 | 0 | |
2015 | March | ABBT0127333 | 0 | |
2015 | March | ABBT0127333 | WI | 0 |
2015 | March | ABBT0127333 | 0 | |
2015 | March | ABBT0127333 | 0 | |
2015 | March | ABBT0127333 | 0 | |
2015 | March | ABBT0127333 | 0 | |
2015 | March | ABBT0127333 | 0 | |
2015 | March | ABBT0127333 | WI | 0 |
2015 | March | ABBT0127333 | WI | 744 |
2015 | March | ABBT0127333 | WI | 0 |
2015 | March | ABBT0127333 | WI | 0 |
2015 | March | ABBT0127333 | WI | 0 |
2015 | April | ABBT0127333 | 0 | |
2015 | April | ABBT0127333 | 0 | |
2015 | April | ABBT0127333 | GS | 0 |
2015 | April | ABBT0127333 | 0 | |
2015 | April | ABBT0127333 | 0 | |
2015 | April | ABBT0127333 | WI | 0 |
2015 | April | ABBT0127333 | 0 | |
2015 | April | ABBT0127333 | 0 | |
2015 | April | ABBT0127333 | 0 | |
2015 | April | ABBT0127333 | 0 | |
2015 | April | ABBT0127333 | 0 | |
2015 | April | ABBT0127333 | WI | 0 |
2015 | April | ABBT0127333 | WI | 691 |
2015 | April | ABBT0127333 | WI | 0 |
2015 | April | ABBT0127333 | WI | 0 |
2015 | April | ABBT0127333 | WI | 0 |
2015 | May | ABBT0127333 | 0 | |
2015 | May | ABBT0127333 | 0 | |
2015 | May | ABBT0127333 | GS | 0 |
2015 | May | ABBT0127333 | 0 | |
2015 | May | ABBT0127333 | 0 | |
2015 | May | ABBT0127333 | WI | 0 |
2015 | May | ABBT0127333 | 0 | |
2015 | May | ABBT0127333 | 0 | |
2015 | May | ABBT0127333 | 0 | |
2015 | May | ABBT0127333 | 0 | |
2015 | May | ABBT0127333 | 0 | |
2015 | May | ABBT0127333 | WI | 0 |
2015 | May | ABBT0127333 | WI | 680 |
2015 | May | ABBT0127333 | WI | 0 |
2015 | May | ABBT0127333 | WI | 0 |
2015 | May | ABBT0127333 | WI | 0 |
2015 | June | ABBT0127333 | 0 | |
2015 | June | ABBT0127333 | 0 | |
2015 | June | ABBT0127333 | GS | 0 |
2015 | June | ABBT0127333 | 0 | |
2015 | June | ABBT0127333 | 0 | |
2015 | June | ABBT0127333 | WI | 0 |
2015 | June | ABBT0127333 | 0 | |
2015 | June | ABBT0127333 | 0 | |
2015 | June | ABBT0127333 | 0 | |
2015 | June | ABBT0127333 | 688 | |
2015 | June | ABBT0127333 | 0 | |
2015 | June | ABBT0127333 | WI | 0 |
2015 | June | ABBT0127333 | WI | 658 |
2015 | June | ABBT0127333 | WI | 0 |
2015 | June | ABBT0127333 | WI | 0 |
2015 | June | ABBT0127333 | WI | 0 |
2015 | July | ABBT0127333 | 0 | |
2015 | July | ABBT0127333 | 0 | |
2015 | July | ABBT0127333 | GS | 0 |
2015 | July | ABBT0127333 | 0 | |
2015 | July | ABBT0127333 | 0 | |
2015 | July | ABBT0127333 | WI | 0 |
2015 | July | ABBT0127333 | 0 | |
2015 | July | ABBT0127333 | 0 | |
2015 | July | ABBT0127333 | 0 | |
2015 | July | ABBT0127333 | 0 | |
2015 | July | ABBT0127333 | 0 | |
2015 | July | ABBT0127333 | WI | 0 |
2015 | July | ABBT0127333 | WI | 685 |
2015 | July | ABBT0127333 | WI | 0 |
2015 | July | ABBT0127333 | WI | 0 |
2015 | July | ABBT0127333 | WI | 0 |
2015 | August | ABBT0127333 | 0 | |
2015 | August | ABBT0127333 | 0 | |
2015 | August | ABBT0127333 | GS | 712 |
2015 | August | ABBT0127333 | 0 | |
2015 | August | ABBT0127333 | 0 | |
2015 | August | ABBT0127333 | WI | 0 |
2015 | August | ABBT0127333 | 0 | |
2015 | August | ABBT0127333 | 0 | |
2015 | August | ABBT0127333 | 0 | |
2015 | August | ABBT0127333 | 0 | |
2015 | August | ABBT0127333 | 0 | |
2015 | August | ABBT0127333 | WI | 0 |
2015 | August | ABBT0127333 | WI | 559 |
2015 | August | ABBT0127333 | WI | 0 |
2015 | August | ABBT0127333 | WI | 0 |
2015 | August | ABBT0127333 | WI | 0 |
2015 | September | ABBT0127333 | 0 | |
2015 | September | ABBT0127333 | 0 | |
2015 | September | ABBT0127333 | GS | 0 |
2015 | September | ABBT0127333 | 0 | |
2015 | September | ABBT0127333 | 0 | |
2015 | September | ABBT0127333 | WI | 0 |
2015 | September | ABBT0127333 | 0 | |
2015 | September | ABBT0127333 | 0 | |
2015 | September | ABBT0127333 | 0 | |
2015 | September | ABBT0127333 | 0 | |
2015 | September | ABBT0127333 | 0 | |
2015 | September | ABBT0127333 | WI | 0 |
2015 | September | ABBT0127333 | WI | 653 |
2015 | September | ABBT0127333 | WI | 0 |
2015 | September | ABBT0127333 | WI | 0 |
2015 | September | ABBT0127333 | WI | 0 |
2015 | October | ABBT0127333 | 0 | |
2015 | October | ABBT0127333 | 0 | |
2015 | October | ABBT0127333 | GS | 682 |
2015 | October | ABBT0127333 | 0 | |
2015 | October | ABBT0127333 | 694 | |
2015 | October | ABBT0127333 | WI | 0 |
2015 | October | ABBT0127333 | 0 | |
2015 | October | ABBT0127333 | 0 | |
2015 | October | ABBT0127333 | 0 | |
2015 | October | ABBT0127333 | 0 | |
2015 | October | ABBT0127333 | 0 | |
2015 | October | ABBT0127333 | WI | 0 |
2015 | October | ABBT0127333 | WI | 718 |
2015 | October | ABBT0127333 | WI | 0 |
2015 | October | ABBT0127333 | WI | 0 |
2015 | October | ABBT0127333 | WI | 0 |
2015 | November | ABBT0127333 | 0 | |
2015 | November | ABBT0127333 | 0 | |
2015 | November | ABBT0127333 | GS | 0 |
2015 | November | ABBT0127333 | 0 | |
2015 | November | ABBT0127333 | 700 | |
2015 | November | ABBT0127333 | WI | 0 |
2015 | November | ABBT0127333 | 0 | |
2015 | November | ABBT0127333 | 0 | |
2015 | November | ABBT0127333 | 0 | |
2015 | November | ABBT0127333 | 0 | |
2015 | November | ABBT0127333 | 0 | |
2015 | November | ABBT0127333 | WI | 0 |
2015 | November | ABBT0127333 | WI | 709 |
2015 | November | ABBT0127333 | WI | 0 |
2015 | November | ABBT0127333 | WI | 0 |
2015 | November | ABBT0127333 | WI | 0 |
2015 | December | ABBT0127333 | 0 | |
2015 | December | ABBT0127333 | 0 | |
2015 | December | ABBT0127333 | GS | 682 |
2015 | December | ABBT0127333 | 0 | |
2015 | December | ABBT0127333 | 0 | |
2015 | December | ABBT0127333 | WI | 0 |
2015 | December | ABBT0127333 | 0 | |
2015 | December | ABBT0127333 | 0 | |
2015 | December | ABBT0127333 | 0 | |
2015 | December | ABBT0127333 | 0 | |
2015 | December | ABBT0127333 | 0 | |
2015 | December | ABBT0127333 | WI | 0 |
2015 | December | ABBT0127333 | WI | 726 |
2015 | December | ABBT0127333 | WI | 0 |
2015 | December | ABBT0127333 | WI | 0 |
2015 | December | ABBT0127333 | WI | 0 |
Hi @Anonymous ,
It seems to not quite understand your needs, can you provide a screenshot of the desired result so that I can easily answer it for you as soon as possible.
Looking forward to your reply.
Best Regards,
Henry
Hi Henry, here is a basic visual of what I would want to have as a result for the sample data I provided:
Year | 2015 | |||||||||||
Reporting Facility ID | February | March | April | May | June | July | August | September | October | November | December | Total |
ABBT0127333 | 668 | 744 | 691 | 680 | 658 | 685 | 559 | 653 | 718 | 709 | 726 | 7491 |
This matrix would have more years continuing to the right using the real data, but since the real data is so large I only have provided a single year.
Basically for each month it takes the maximum value of hours, but it only considers entries with the FromToID being equal to WI
The subtotal columns that would appear after each year should sum those maximums for that year.
Hopefully that clears things up.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
102 | |
101 | |
78 | |
70 | |
64 |
User | Count |
---|---|
140 | |
106 | |
100 | |
83 | |
73 |