Alert: There is a planned Community maintenance outage October 16th from approximately 10 - 11 PM PST. During this time the Alteryx Community will be inaccessible. Thank you for your understanding!

Alteryx Designer Desktop Discussions

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

Datetime within Datetime range?

Grantham
6 - Meteoroid

Good day All

 

Im relatively new to Alteryx and and would like to ask for help with a problem: 

 

I have a 2 files, 1st - indicated the system generated date and times ( start and end ) of customer visits and a 2nd - indicating the actual datetime that visit.

 

I need to know if the actual date time falls within the system generated datetime = Yes or outside = No or ether the start or end date falls within the range =  Start/End Yes.

Alternatively : if only the Start Actual datetime falls within or outside the generated datetime range?

 

File 1 :  Generated datetime

 

Customer accSystem Start date time System Start date time 
1232022/06/28 10:002022/06/28 10:30
4562022/06/28 13:302022/06/28 14:00
7892022/06/28 16:002022/06/28 16:30

    

File 2 : Actual datetime

 

Caller IDActual call StartActual call End
Joe Smith2022/06/28 10:102022/06/28 10:20
Joe Smith2022/06/28 13:102022/06/28 13:25
Joe Smith2022/06/28 16:252022/06/28 16:35

 

Thank you

5 REPLIES 5
flying008
14 - Magnetar

Hi, @Grantham 

 

Could you give a table as your want output form ?

AmrMansour
Alteryx
Alteryx

 Hi @Grantham 

Happy to have you in our user community. 

 

I can see that there are no matching records between the 2 data sets ( unique ID). Does that mean that you need to " Append Fields :appendfields:" of all (Actual datetime) records to ( Generated datetime and then create your condition using a Custom "Filter :filter:"? 

 

Or you need a table of correspondence ( between Customer acc and Caller ID ) and then limit the matching by using "Join :Join:" and then create your condition using a Custom "Filter :filter:"? 

 

Cheers,

Amr Mansour

Digital CSM

 

IraWatt
17 - Castor
17 - Castor

Hey @Grantham,

Here is an example of how to do this:

IraWatt_0-1656406001635.png

The first step is to convert you text data to a datetime so that you can compare them. I did this using the formula DateTimeParse. I then used an IF statement to compare the columns. 

Any questions or issues please ask :)
HTH!
Ira

Grantham
6 - Meteoroid

Thank you for the help 


IraWatt
17 - Castor
17 - Castor

No worries @Grantham 😄

Labels