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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

Utilization Report: Measuring Percent as Whole (Don't summarize measures!)

So I've struggled with this utilization report for a few weeks now, and every time I think I have it, another problem crops up. 

 

I've got it very simple.  All data pull from a few different tables, but the main one is called (for now) Append1.  Here are my columns (this table is unpivotted from tables with dates as the columns):

  • Full Name - The employee name
  • Project - The project the employee 
  • WS Date - The WS dates for each project that the employee will be working
  • Projected Hours - The hours for each week on each project will be working
  • Measure: [Calc End Date] =  CALCULATE(MAX(Append1[WS Date]))
  • Measure: [Calc Start Date] = CALCULATE(MIN(Append1[WS Date]))
  • Measure: [Calc Projected Hours] = CALCULATE(SUM(Append1[Projected Hours]))
  • Measure: [Calc Possible Hours] = IF([Calc Start Date]=BLANK(),BLANK(),(DATEDIFF([Calc Start Date],Append1[Calc End Date],WEEK)+1)*40)
  • Measure: [Calc Utilization] = CALCULATE(DIVIDE([Calc Projected Hours],[Calc Possible Hours],BLANK()))

 

So basically, Calc End Date & Calc Start Date figure out when the first and last date of the employee are (within a measured date slicer) and then Calc Possible Hours takes the date difference and multiplies that by 40; so they could work 40 hours per week within that date range.  Calc Utilization figures out what the utilization rate (%) is.

 

This works great in table forms (when I cross reference it by Full Name).  But when I try to aggregate it by Area (from a related table) or even in whole (what is the overall utilization rate), my measures just add up all the utilization rates (%) instead of doing an average of the utilization rates (%) which is appropriate.

 

Here is the current report.

 

I'm tearing my hair out here.  Please help!

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous

You could modify your measure "Calc Utilization" to meet your needs here.

Measure = AVERAGEX(ALLEXCEPT(table_Roster,table_Roster[Area]),[Calc Utilization])

11.png

 

Best Regards

Maggie

View solution in original post

5 REPLIES 5
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

the utilization rates (%) shouldn’t be 100%, right?

11.png

Measure [Calc Projected Hours] should sum Projected Hours per Project, and [Calc Start Date] should be the min date of each project, right?

 

Best Regards

Maggie

Anonymous
Not applicable

If the possible hours is 40 and the person has 40 hours planned, then yes, they'd be 100%.

 

[Calc Projected Hours] sums all the hours per person (or however I have the data cut up; by Area, by Discipline, by Project, by Person).  [Calc Start Date] is the earliest date the person shows up within the date slicer.  So if a person's first date in my dataset was 06/08/18, but the slicer starts at 06/11/18, then their MINDATE would be 06/11/18.

Hi @Anonymous

"But when I try to aggregate it by Area (from a related table) or even in whole (what is the overall utilization rate), my measures just add up all the utilization rates (%) instead of doing an average of the utilization rates (%) which is appropriate"

Look at my picture above, I add Area to the table, Is the data showing on the table  correct? Or, could you show me a screenshot showing what's wrong with you?

 

Best Regards

Maggie

Anonymous
Not applicable

For example, if I do a table by Area, then it SUMS the percentages, instead of doing an AVERAGE of the areas.

Capture.JPG

 

Or if I do an overall Gauge, then it SUMS the percentages instead of doing an AVERAGE of all of them.

 

Capture2.JPG

Hi @Anonymous

You could modify your measure "Calc Utilization" to meet your needs here.

Measure = AVERAGEX(ALLEXCEPT(table_Roster,table_Roster[Area]),[Calc Utilization])

11.png

 

Best Regards

Maggie

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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