Alteryx Designer Desktop Discussions

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

Overlapping Time Windows

AnhNguyen326
5 - Atom

Hi everyone,

 

I am working on a workflow that identifies overlapping shipments based on their pickup time window (early pickup date and late pickup date). Please see the attached file for more details.

 

I initially used a self-join but the workflow only paired up shipments instead of being able to find all (more than 1) overlapping shipments. What would be the best way to do this?

 

Thank you Alteryx community!

4 REPLIES 4
Bobbyt23
12 - Quasar

pending on what format you needed the output you could do something like this:

Help 3.jpg

AnhNguyen326
5 - Atom

Thank you for your prompt response. The format I need looks something like this

 

Shipment ID

Overlapping Shipment 1

Overlapping Shipment 2

Overlapping Shipment 3

Overlapping Shipment 4

Overlap Window Start

Overlap Window End

123

456

789

(null)

(null)

24-05-04

24-05-05

 

 

 

Bobbyt23
12 - Quasar

It's probably not the cleanest macro but think this gives you what you wanted.

 

image.png

 

image.png

 

Will at least give you something to work with/tweak.👌

AnhNguyen326
5 - Atom

Thank you! This worked wonderfully.

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