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

View all the Fabric Data Days sessions on demand. View schedule

Reply
mo1988
Helper I
Helper I

Paid and Unpaid overtime calculation

I am trying to calculate weekly overtime of total duration

 

I have 2 types of overtimes: Paid & Unpaid.

 

Unpaid overtime: Weekly sum of total duration between 37.5 & 44 hours

Paid overtime: Weekly sum of total duration > 44 hours.

 

The formula for unpaid overtime I am using is the following:

Overtime = IF([TotalHours] > 37.5, IF(([TotalHours]-37.5)>6.5, 6.5, ([TotalHours]-37.5)), 0)

1.png

While using the Overtime DAX Formula, it does calculate properly on the row level but when it comes to Matrix Total, its always showing 6.5

Any way to fix this please?

Thanks

1 REPLY 1
Anonymous
Not applicable

Hi @mo1988 

Can you provide the  outcome of the matrix visual or other sample data, Is the "[TotalHours]" a measure? What function did you wirte.  

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors