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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.