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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I have a dataset of temporary employee hours summarized by employee and date of invoice from the temp agency. The invoice date is generally the Sunday following the week in which the work was done though in one case it was the following Thursday.
I am anlayzing productivity by Month and would like to have the hours divided across the approx. work days. How would I convert this table assuming the labor was done M-F of the previous week?
| Invoice Date | Employee ID | Hours Worked |
| 08/18/2019 | 1234 | 26.00 |
| 08/18/2019 | 1235 | 39.50 |
| 09/15/2019 | 1236 | 24.00 |
| 08/18/2019 | 1237 | 2.00 |
| 09/08/2019 | 1240 | 7.50 |
Is it possible to change it into something like this using power query or dax? Ideally I would like to exclude Holidays, I do have a calendar table.
| Approx. Work Date | Employee ID | Approx. Hours Worked |
| 08/12/2019 | 1234 | 5.20 |
| 08/13/2019 | 1234 | 5.20 |
| 08/14/2019 | 1234 | 5.20 |
| 08/15/2019 | 1234 | 5.20 |
| 08/16/2019 | 1234 | 5.20 |
| 08/12/2019 | 1235 | 7.90 |
| 08/13/2019 | 1235 | 7.90 |
| 08/14/2019 | 1235 | 7.90 |
| 08/15/2019 | 1235 | 7.90 |
| 08/16/2019 | 1235 | 7.90 |
How would you approach this challenge?
Thanks in advance!
Solved! Go to Solution.
@b2wise , Create a Wednesday end date week, Take help from here
Any Weekday Week - Start From Any day of Week
https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...
Now create a new table using crossjoin with filter Invoice Date = [Date]
refer to this file on how to allocate(This is monthly). In you case if you have holiday other then weekend, you need have calculation for that, else just divide by 5
filter(Crossjoin(Date,Table), [Week End date] = [Invoice Date] && [Weekday] =1)
@b2wise , Create a Wednesday end date week, Take help from here
Any Weekday Week - Start From Any day of Week
https://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Powe...
Now create a new table using crossjoin with filter Invoice Date = [Date]
refer to this file on how to allocate(This is monthly). In you case if you have holiday other then weekend, you need have calculation for that, else just divide by 5
filter(Crossjoin(Date,Table), [Week End date] = [Invoice Date] && [Weekday] =1)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!