Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Deviation contract Hours = [Nett Time]-[ContractHours]
Deviation contract Hours to add up = if(countrows(values(DCalendar[Date]))=1,[Deviation contract Hours],sumx(values(DCalendar[Date]),[Deviation contract Hours]))
Many thanks in advance for your support
The three criteria for overtime make this one a little tricky. Here is a proposed approached:
If you provide some sample data or pbix, I can write an expression to do the above.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
This looks like a good start. Where are you stuck?
Dear Ibendlin,
I meantime figured out how to include a filter to determine whether an employee has a Fulltime or Parttime contract. Pls refer to measure Overtime (125%).
The last condition to determine whether the deviation contract hours should be paid as 100% or 125% is to check whether an employee worked 10 or more hours (=measure Nett Time) that particular day. My thought was to add an OR if Nett Time >=10 to the measure Overtime (125%), but I don’t know how to include this.
Deviation contract Hours = [Nett Time]-[ContractHours]
Overtime (125%) = Calculate([Nett Time],filter('ContractHours 1','ContractHours 1'[Weekday]=8 && ' ContractHours 1'[Value]>=36))-calculate([ContractHours],filter(' ContractHours 1',' ContractHours 1'[Weekday]=8 && ' ContractHours 1'[Value]>=36))
Again many thanks for your support, much appreciated !
Kind regards,
Natasja
Hi Ibendlin,
Many thanks for your feedback.
The measure "Deviation contract Hours to add up" is working correctly but this measure just gives me the diff between contract hours and hours worked. To determine whether the overtime should be paid as 100% or 125% I need to include the conditions If an employee works more than 144 hours per 4 weeks OR 36 hours per week OR 10 hours per day. If these conditions are met, the hours must be considered as 125% otherwise as 100%.
Thank you - Natasja
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
21 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |