Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Deduct Hours From Total to Get Months of Capacity

I have a total hours estimated from one chart and I am trying to deduct the capacity for each month to get the amount of months of capacity booked. 

dbockra_0-1670508991209.png<- capacity

For example, in column 2. I want to deduct the estimated hours from next month, the following month, etc. until that number is zero. Then I want to get the number of months it takes to do that. So if I have 2000 estimated hours for column 2, 2000-514.39-489.38-564.41-464.41=-32.59. So it would be about 4 months of capacity booked. A way of doing this would involve taking the 2000 estimated hours divided by the average of those 4 months. I am not sure what the approach to this would be or how to do this.

 

1 REPLY 1
mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

see my pbi file.

First I have unpivoted all the columns in Power Query, then I created the measure.

https://1drv.ms/u/s!Aj45jbu0mDVJi3rlvYBGDeRaUP50?e=XbAeX2 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.