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

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.