Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Need help to find time difference

Padmanaban
5 - Atom

Hi,

 

I've problem to find out Time difference if second event falling on next day.  Refer the enclosed sample file

4 REPLIES 4
ponraj
13 - Pulsar

Attaching a sample workflow. 

 

Need help to find time difference.PNG

Padmanaban
5 - Atom

Hi Pons - Thanks for quick response.  if you find short work flow, please let me know

Thableaus
17 - Castor
17 - Castor

Hi @Padmanaban 

 

See if this is a short solution for you.

 

Solution1.PNG

 

IF Out  Time is less than In Time, then you divide the calculation in two:

Out Time - 00:00 + 23:59 - In Time + 1.

 

Cheers,

Padmanaban
5 - Atom

Hi Thableaus - Really its very simplified and great solution!  Thanks very much!

Labels
Top Solution Authors