Forum Discussion
Anonymous
3 years agoNot applicable
Overtime calculation
I am trying to calculate weekly over time of total Duration. The formula(s) that I am currently using are: TotalHours = SUM(HoursData[Duration]) Overtime = IF([TotalHours] > 37.5, IF(([TotalHo...
Padycosmos
3 years agoSolution Sage
Hope this helps:
Overtime =SWITCH(TRUE(),[TotalHours]-37.5>6.5, 6.5,[TotalHours]-37.5)<=6.5, [TotalHours]-37.5,0)
Padycosmos
3 years agoSolution Sage
Hope this helps:
Overtime =SWITCH(TRUE(),[TotalHours]-37.5>6.5, 6.5,[TotalHours]-37.5)<=6.5, [TotalHours]-37.5<=0,0)
- Anonymous3 years agoNot applicable
Hi Padycosmos - It says there is a syntax error
- Padycosmos3 years agoSolution Sage
Sorry about that, here's the corrected one
Hope this helps:
Overtime =SWITCH(TRUE(),[TotalHours]-37.5>6.5, 6.5,[TotalHours]-37.5)<=6.5,[TotalHours]-37.5, [TotalHours]-37.5<=0,0)