Alteryx Designer Desktop Discussions

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

Finding difference in hours for DateTime in adjacent rows

karthik2020
5 - Atom

Hi,

I am trying to find the difference in hours between DateTime in adjacent rows( N -  (N-1) row)

Can you let me know if this is feasible? I tried using existing samples online but facing errors. Thank you.

 

 

1 REPLY 1
StephaneP
Alteryx
Alteryx

Hello @karthik2020 ,

If I have well understood here is a way of doing it

StephaneP_0-1647979256804.png

StephaneP_3-1647979467523.png

 

You 1st need to convert your test as a date

StephaneP_1-1647979340149.png

+ using the formula DateTime Diff calculate the difference between 2 value

StephaneP_2-1647979393811.png

I have used the multirow tool as my data are on different rows. But if they are in different column you can use only the formula tool.

Hope it helps

Stéphane Portier
Sales Engineer
Alteryx
Labels