Showing results for 
Search instead for 
Did you mean: 
Not applicable

Resource utilization per month


 I have 4 tables as mentioned in attachment Tasks,Holidays,Leaves,Total.


User1 Scenario:

Considering Total that in Jan20 say we have only total of 9 days of which Holidays tables say we have 3 days off & Leaves table talks about User1 took 1 complete day leave and per day we have 5 Man Hrs.

i could able to get:

Can someone help me out with the logic of TotalWorkingHrs: i tried 
WorkingDays = CALCULATE(VALUES(Tasks[WDwoLeaves])-[LeavesTaken])
which is giving correct value User1: 9-3-1= 5 & User2: 9-3-0.5= 5.5 but TeamUtilization% = sum(WorkingHrs)/noOfUsers is not coming out correctly. Need Help
Leaves TakenHolidaysTotalWorking Hrs

User1: 1 & User2: 0.5

User1:3 & User2: 3Technically : (TotalDays - Leaves -Holidays)*5 Hrs
That totalDays varies from Month-Month
is that Month(UserTaskDate) is Jan then it should take Jan.... 
Super User
Super User

Seems like you want:


I have a better version of that in my book along with calculating out % Utilization, etc.


Also, you will likely run into a measures total problem when doing this so. Very common. See my post about it here:

Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...
Not applicable

Thanks Greg,

for the response, not exactly the same but im stuck in onething how to write DAX for a condition

if Month(Tasks[date]) = Month (Total[date]), which technically if Jan20 then 31-Tasks[WorkingDays], else if Feb20 then 28- Tasks[WorkingDays] and so on.

Helpful resources

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors