Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I am in the development phase of putting together a report to calculate overtime for multiple states. I have a reference table with all the states overtime rules with daily ot, daily dt, weekly ot, and 7th day ot along with each effective and end dates. I plan on merging that with the payroll data I have and multiply by its respective OT type.
Has anyone performed a similar task, or have any suggestions on this process?
(Edit)
I would like to do most if not all of the overtime calculation within the query editor.
Hi @Anonymous ,
"I plan on merging that with the payroll data I have and multiply by its respective OT type."
What are the problems you met during the development of the report? Merging data or creating DAX measures?
Please provide the sample data and expected output.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I do not have any problems with formulas at the moment, if I do I will post another question. However, I would like to hear how others have approached this process. This is something out of the norm for me and I am using a process I am familiar with. If anyone has another approach that would be much more suitable, I would be more than happy to adopt that approach.
As for my data set I have 2 tables, an Overtime rules table and the hours worked for each employee. I have a join on State that brings in the number of hours that qualify for Daily OT (1.5), Daily OT (2x), Weekly OT, then a few conditional subtraction formulas. I have a duplicate connection to the employee hours table where I group by Week of and sum total hours. I then subtract total week hours with the Weekly OT rule and multiply that by the rate at 1.5.
Conditional Subtraction formulas
Overtime Rules table:
Employee Hours Worked Table:
@Anonymous Read this post to get your answer quickly.
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |