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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
yve214
Helper III
Helper III

DAX Help - Calculate employees scheduled more than 12 hours/day for 3 consecutive days

Hi there,

 

I have been struggling to get the appropriate measure for this metrics.

 

They are asking that I provide a list of employees and the hours if they are scheduled for more than 12 hours/day for 3 consecutive days (>36 hours in 3 days). Below is what my raw data looks like, thank you. Please let me know if you have questions happy to clarify, thank you in advance.

 

yve214_1-1634187602389.png

 

 

2 REPLIES 2
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. 

Hi Ibendlin,

 

Sorry for the delayed response. I am looking for a the result filtered by a monthly range for instance if between 12/1/2020 - 1/30/2021. Please see sample data below and let me know if you have more questions.

Thank you very much.

 

Employee IDStartsEndsEmployee TypeStart TimeEnd TimeHours
1001112/24/202012/24/2020Full Time9:00 AM9:00 PM12.00
1001112/25/202012/25/2020Full Time12:00 PM6:00 AM18.00
1001112/26/202012/26/2020Full Time9:00 AM12:00 AM15.00
100121/6/20211/6/2021Full Time1:00 PM9:00 PM8.00
100131/8/20211/8/2021Full Time6:00 AM12:00 AM18.00
100151/10/20211/11/2021Part Time8:00 AM4:00 PM8.00
100131/11/20211/11/2021Full Time12:00 PM12:00 AM12.00
100131/12/20211/12/2021Full Time12:00 PM12:00 AM12.00
100131/13/20211/13/2021Full Time12:00 PM12:00 AM12.00

 

Output:

Employee IDTotal Consecutative Hours
101145.00
101336.00

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors