Alteryx Designer Desktop Discussions

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

Mapping 2 data within a range as criteria

reignM
7 - Meteor

Hi. I have the following simplified 2 data sources:  

 

Session DateTimingTitle
13 May0800 - 0830Title A
25 May0900 - 0930Title B
13 May0900 - 0930Title C
34 May0800 - 0900Titile D
15 May1230 - 1230Title E

 

IDSessionDateStart TimeEnd Time
123413 May 0822 0845
456734 May1010 1012
891015 May12361259
111213 May 09200930

 

What I wish to do is to find the Title to each ID given the Start Time, End Time, Session and Date. So in this case, for ID 1234, the title would be Title A. The first data table signify the schedule. I wish to find out the Title which ID tune in to based on the schedule. 

 

If the start time and End time falls within the Timing range, and have the same Session and Date, I am to map the Title.

 

What I did was to split the Timing into 2 columns. But the problem i'm facing is when I attempt to use 'Join' to match the Timing against the Start Time and End Time, it could not have work since they are not identical. 

 

How do i go about doing this? I would greatly appreciate your help.

2 REPLIES 2
DavidSkaife
13 - Pulsar

Hi @reignM 

 

It's a bit rough but this should work, and give you an idea on how to approach it (i assume Title A timing should have been 0800 - 0900 if you're saying it should be a match):

 

DavidSkaife_0-1651224934537.png

 

binuacs
20 - Arcturus

@reignM Another way of doing with this by generating the time range using the Generate Tool and compare with the start time

 

binuacs_0-1651225523690.png

 

Labels