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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Anonymous
Not applicable

PAS - Date Between Two Weeks

Hello.  

I have a series of activities that each have a start date and a finish date.  I would like to set up a PAS (performance against schedule) with this data that will calculate the number of 'on time' and 'early' over the number of 'misses' to give me a percentage.  I would also like to view a table of the activities. For this example, we will say the date range 3 weeks ago is 3/5-3/11 and 2 weeks ago is 3/12-3/18.

 

The week should always be a week, Sunday to Saturday.

I only want to calculate activities that were scheduled to start or finish in the next week, 3 weeks ago.  So, in week 8, what was scheduled to start or finish in week 9?  Both the start and the finish can count as 'on time', 'early', and 'miss'. 

 

Currently, I have the below table calculated.  I am struggling to isolate (filter?) the activities that I would like to see.  I thought I could use power querry and use =Date.IsInNextWeek([Start]) but that is a rolling date based on today.  I need something that will look at dates in between.  I do have a date table with the date range of each week.  My data is locked in each Wednesday.  

 

Help, please?

 

Activity IDActivity NameStart 3 Weeks AgoStart 2 Weeks AgoFinish 3 Weeks AgoFinish 2 Weeks AgoStart DeltaFinish DeltaStart PASFinish PAS   
4834get permits3/6/20233/6/20233/7/20233/7/202300On TimeOn Time   
9843rough grade3/7/20233/7/20233/8/20233/8/202300On TimeOn Time   
9832grade3/8/20233/7/20233/9/20233/8/2023-1-1EarlyEarly Total On Time or Early6
9821compress3/9/20233/8/20233/10/20233/9/2023-1-1LateLate Total Activities8
9810frp3/13/20233/12/20233/14/20233/13/2023-1-1EarlyEarly  75%
9799cure3/14/20233/18/20233/15/20233/19/202344LateLate   
9788frame3/18/20233/19/20233/19/20233/20/202311LateLate   
9777drywall3/19/20233/20/20233/20/20233/21/202311LateLate   
9766tfm3/20/20233/21/20233/21/20233/22/202311LateLate   
9755electrical3/21/20233/22/20233/22/20233/23/202311LateLate   
9744plumbing3/22/20233/25/20233/23/20233/26/202333LateLate   
4 REPLIES 4
Anonymous
Not applicable

The results that I would like to achieve are the isolation of activities 4834, 9843, 9832 and 9821, a count of the total early and on time, a count of the total activities, and the PAS score resulting from those, which is count of early and on time over total as a percentage, PAS.  

 

 

Activity IDActivity NameStart 3 Weeks AgoStart 2 Weeks AgoFinish 3 Weeks AgoFinish 2 Weeks AgoStart DeltaFinish DeltaStart PASFinish PAS Total On Time or Early7
4834get permits3/6/20233/6/20233/7/20233/7/202300On TimeOn Time Total Activities8
9843rough grade3/7/20233/7/20233/8/20233/8/202300On TimeOn Time PAS88%
9832grade3/8/20233/7/20233/9/20233/8/2023-1-1EarlyEarly   
9821compress3/9/20233/10/20233/10/20233/11/202311LateEarly   
9810frp3/13/20233/12/20233/14/20233/13/2023-1-1EarlyEarly   
9799cure3/14/20233/18/20233/15/20233/19/202344LateLate   
9788frame3/18/20233/19/20233/19/20233/20/202311LateLate   
9777drywall3/19/20233/20/20233/20/20233/21/202311LateLate   
9766tfm3/20/20233/21/20233/21/20233/22/202311LateLate   
9755electrical3/21/20233/22/20233/22/20233/23/202311LateLate   
9744plumbing3/22/20233/25/20233/23/20233/26/202333LateLate   
lbendlin
Super User
Super User

why is 9821 classified as late?

Anonymous
Not applicable

Good point.  Because I quickly and manually put together the table and mislabled it.

Please provide sanitized sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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