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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Working hours based on Roster Pattern

Hello Experts .. 

 

I have a Employee Roster Pattern Table and a Date Table. 

Requirement is to calculate the total working hours for each employee based on the roster pattern and holidays/week ends.

 

Can you please help?

regards

DJ

 

Emplyee Roster Table              
Person NumberID NumberBase HoursDescriptionStart DateEnd DateSunMonTueWedThuFriSat  
22990053990053D70-8-8-8-818/01/201917/01/20200086870  
22990053990053H30-0-8-8-818/01/202031/12/47120008890  
               
Date Table              
 Working DateWeek DayHolidayRoster Pattern           
1/01/2020416           
2/01/20205 8           
3/01/20206 7           
4/01/2020710           
5/01/2020110           
6/01/20202 0           
7/01/20203 8           
8/01/20204 6           
9/01/20205 8           
10/01/20206 7           
11/01/2020710           
12/01/2020110           
13/01/20202 0           
14/01/20203 8           
15/01/20204 6           
16/01/20205 8           
17/01/20206 7           
18/01/2020710New Roster Pattrn Start          
19/01/2020110           
20/01/20202 0           
21/01/20203 8           
22/01/20204 8           
23/01/20205 9           
24/01/20206 0           
25/01/2020710           
26/01/2020110           
27/01/2020210           
28/01/20203 8           
29/01/20204 8           
30/01/20205 9           
31/01/20206 0           
               
               
               

 

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

In "Emplyee Roster Table", number "6,7,8" under "Tue,Wed,Thu" means how many hours emplyee works in these days, right?

 

In Date Table, "Roster Pattern" means how many hours an emplyee should work for this day,

The "Roster Pattern" is the same for every month as below, right?

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Heu Maggie,

 

I need to look up teh Roster Pattern from the Roster table for a emoployee, and use it in Date table to calculate.

Roster pattern can chnage at teh midle of teh month as weel.

 

Thanks

DJ

Hi @Anonymous 

I am still not clear.

For for example,  person 1's data in Roster tablem is as below:

person id start date end date Sun Mon Tue Wed Thu Fri Sat
1 1/1/2020 1/15/2020 0 0 8 6 8 7 0

then i should check if the values from "Sun" to "Sat" with the "Roster Pattern" values in date table are consistent,

then use the values to calculate working hours, right?

 

 

Best Regards
Maggie

 

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.