Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Time Period Overlap

scollier1993
7 - Meteor

Hi,

 

I am trying to do a resource planning analysis that provides me with a flag/report whenever a resource is assigned to a project for more than 40 hours during a week.

The data looks like this: 

 
ResourceProjectStart DateEnd DateWeekly Hours
TomClient A2/25/20235/10/202320
TomClient B4/10/20236/9/202330
AlexClient C9/1/20233/1/202440
AlexClient D11/1/20232/15/202410

 

 

The workflow should first check if there is an overlap of the start-end date periods and if there is, check if the sum of weekly hours exceeds 40.

So in the two examples above, the outcome should be something like this:

"Between 4/10/2023 and 5/10/2023, Tom's weekly hours exceed 40". 
Because he is staffed on two clients during that timeframe and his weekly hours would be 50.

Similar for Alex:

"Between 11/1/2023 and 2/15/2024, Alex's weekly hours exceed 40".

 

I already have a workflow that compares the time periods and gives me a report when there is any overlap.

But I need help with the sum calculation of hours at any point during these time periods, because if the total hours are less than 40, the overlap is OK and does not need to be raised.

 

 
 

Screenshot 2023-08-04 144341.png

 

Thank you!

2 REPLIES 2
binuacs
21 - Polaris

@scollier1993 Something like below?

image.png

oyes2704
8 - Asteroid

Hi @scollier1993

You were really close! I added the number of hours as summary on overlaps..

 

 

However in your flow if they had 2 or more project overlaps that might not work. You would need to add the "accidents" of the overlaps at least. I created a stab for you here. Also, if the overlapping projects would be back to back, you probably want to enhance it even further. Let me know if you need more help. 

Best,

Oly

 

Labels