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

Win a FREE 3 Day Ticket to FabCon Vienna. Apply now

Reply
6701Beckster
New Member

Consecutive Days worked in 7 and 14 days based on a date slicer with days worked gaps

I have a tricky situation that I'm looking for help with.  Working on a calculation (could be more than one if needed) for the following:  

 

  • Consecutive days worked in a range selected by a slicer with the primary ranges of consecutive days in a 7 or 14 day period.  
    • Days to be identified in the table (first and last) and broken out by weeks - M - S) 
    • Slicer to be used to identify the date range.  
  • Cannot use standard WORKDAYS functions as the group in question works non-standard shifts in a manufacturing environment that works through weekends and holidays.  
  • Data provides the date worked with hours worked and overtime but dates not worked are skipped.  
    • These missing dates must be able to be counted to identify consecutive days 

 

Sample data is below.  I have a calendar created within the Power BI file that is based on the min/max dates worked.  The basic joins for this issue are in an image below the sample data.  

 

Any assistance is greatly appreciated.  

 

Empl IDDateWorkedSum of HoursWkdSum of Hours_OT
A1234561/2/202380
A1234561/4/202380
A1234561/5/20238.20
A1234561/6/20238.30
A1234561/9/202381.2
A1234561/10/20238.30
A1234561/11/202380.5
A1234561/12/20238.20
A1234561/13/202381.1
A2345671/1/202320.20
A2345671/3/202384.1
A2345671/4/202384.1
A2345671/5/202384.3
A2345671/9/202384.4
A2345671/10/202384.2
A2345671/11/202384.3
A2345671/12/202384.3

 

6701Beckster_0-1674577882946.png

 

0 REPLIES 0

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.