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

Help Calculating YTD Utilization by Month

I am trying to calculate YTD Utilization by month for my team. I have two different calculations that I am trying to do. The first is per team member. The second is for the entire team.

 

Each month the total available utilization hours are 161.3333. There is a table that houses all of the billable hours for each team member and I am already calculatin total billable hours with a measure in Power BI. Here is an example of what it looks like in Excel as well as the calculation for May...

capture.jpgcapture2.jpg

This is what I have currently in PowerBI for a team member report. I would like to add the YTD Utilization to this chart and possible a guage that shows the current YTD.

capture.jpg

Any help is greatly appreciated!

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Try this measure

=CALCULATE([Billable hours],DATESYTD(Calendar[Date],"31/12")/(161.3333*MONTH(MAX(Calendar[Date])))

I have assumed the following:

  1. Billable hours is a measure
  2. There is a Calendar Table with a column of Year and Month.  The Dates in the Calendar Table should run until the last date in the Date column of your Data Table
  3. There is an active relationship from the Date column of your Data Table to the Date column of the Calendar Table
  4. To your visual, you have dragged Year and Month from the Calendar Table

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

1 REPLY 1
Ashish_Mathur
Super User
Super User

Hi,

Try this measure

=CALCULATE([Billable hours],DATESYTD(Calendar[Date],"31/12")/(161.3333*MONTH(MAX(Calendar[Date])))

I have assumed the following:

  1. Billable hours is a measure
  2. There is a Calendar Table with a column of Year and Month.  The Dates in the Calendar Table should run until the last date in the Date column of your Data Table
  3. There is an active relationship from the Date column of your Data Table to the Date column of the Calendar Table
  4. To your visual, you have dragged Year and Month from the Calendar Table

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.