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
lc1
Helper III
Helper III

Calculate Over Time Weekly Average by different categories

Hello,

I have an Over Time report by pay period and I'd like to create a matrix that indicates:

- Total number of employees working OT

- Average number of employees working less than 5 OT hours per week

- Average number of employees working 5-10 OT hours per week

- Average number of employees working over 10 OT hours per week

 

 Thank you

1 REPLY 1
Anonymous
Not applicable

hello i would create the following measures 

 

- Total number of employees working OT

employees working OT = calculate(distinctcount(employee) ,filter(payperiodtable, OT Hours >= 0))

- Average number of employees working less than 5 OT hours per week

Average less then 5 OT hours = [employees working OT] / (calculate(distinctcount(employee) ,filter(payperiodtable, OT Hours <= 5))

- Average number of employees working 5-10 OT hours per week
Average btwn 5 - 10 OT hours = [employees working OT] / (calculate(distinctcount(employee) ,filter(payperiodtable, OT Hours > 5 && OT hours <=10 ))

- Average number of employees working over 10 OT hours per week

Average greater then 10 OT hours = [employees working OT] / (calculate(distinctcount(employee) ,filter(payperiodtable, OT Hours > 10))

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.