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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
b2wise
Helper III
Helper III

Convert Weekly Employee Hours to Approximate Daily Hours

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 DateEmployee IDHours Worked
08/18/2019123426.00
08/18/2019123539.50
09/15/2019123624.00
08/18/201912372.00
09/08/201912407.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 DateEmployee IDApprox. Hours Worked
08/12/201912345.20
08/13/201912345.20
08/14/201912345.20
08/15/201912345.20
08/16/201912345.20
08/12/201912357.90
08/13/201912357.90
08/14/201912357.90
08/15/201912357.90
08/16/201912357.90

 

How would you approach this challenge?

 

Thanks in advance!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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)

 

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@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)

 

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors