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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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