Alteryx Designer Desktop Discussions

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

Overlapping Date Range Report

chadosu
6 - Meteoroid

Hello experts,

 

I am looking to generate a report that produces overlapping date ranges of projects within a group.  I have seen similar topics, but not one that handles 2 different sets of overlaps within a group like this example.

 

Data   
Components ProjectsStart DateEnd Date
IT Component 1Project A10/1/202410/1/2025
IT Component 1Project B1/1/202412/31/2024
IT Component 2Project C1/1/20241/31/2025
IT Component 2Project D9/15/202410/1/2025
IT Component 2Project E7/15/20241/15/2026
IT Component 2Project F11/15/20251/15/2026

 

 

 

Desired Result   
ComponentsProjectsOverlap StartOverlap End
IT Component 1Project A10/1/202412/31/2024
 Project B  
IT Component 2Project C7/15/20241/31/2025
 Project D  
 Project E  
 Project E11/15/20251/15/2026
 Project F  

 

Capture.JPG

 

Thank you in advance for any help on this.

4 REPLIES 4
collinmarchese
5 - Atom

Here's a primitive example of how to achieve this. If i had more time I would figure out a way to make this more dynamic but this will give you an idea. Basically creating record for each date between start/end range and joining on dates between the projects to see the overlapping dates, then find min/max of the shared dates. hope this helps.

chadosu
6 - Meteoroid

I appreciate your input!  I have been able to get close with the attached file.  My problem is this takes the absolute start and end of Component 2 instead of breaking it apart.

Pang_Hee_Choy
12 - Quasar

@chadosu here my version.

 

Screenshot 2023-08-16 103439.png

mainly use join for component, then each project is compared to all project within same component. 

then use math to reveal the overlap. 

Screenshot 2023-08-16 103434.png

and it was hard to merge as you can see project D actually fully overlap by project E. Hence, I output everything.

Screenshot 2023-08-16 103455.png

 

beside, for your workflow, you can add one multi-row formula, if the date different more than 1 then goto another group then summarize with ID.

config:

Screenshot 2023-08-16 103246.png

result:

Screenshot 2023-08-16 103300.png

chadosu
6 - Meteoroid

I believe this is the solution I am after! I realized that in my original desired result, not all overlaps were actually captured, but your solution captures them!

 

Thank you very much!

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels