Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Difference in Working Hours

Scheruku
8 - Asteroid

Hi,

 

We are trying to calculate the difference in working hours between second time and subsequent row entry time file after sorting ascendingly for the same vehicle no...the first row second time - subsequent row entry time

 

I'm facing difficult in using the multi row formula for calculating the no of hours

 

Best Regards,

 

 

5 REPLIES 5
danrh
13 - Pulsar

Something like the attached? 

 

Note that the RecordID at the beginning and the Sort at the end are just to maintain the order of the records.  They aren't completely necessary.

Scheruku
8 - Asteroid

Hi,

 

Thank you for the solution. It's working great!

 

Just wanted to check how can we get the difference in hh:mm:ss format 

danrh
13 - Pulsar

Take a look at the attached workflow:

image.png

Scheruku
8 - Asteroid

Hi,

 

I'm trying to extract only those records that are less than 4 hours and get the corresponding details too..

 

Could you please help.

 

 

danrh
13 - Pulsar

Something like this in a Filter tool should do the trick:

 

Left([Time Difference],2) IN ('00','01','02','03')
OR
[Time Difference] = '04:00:00'

image.png

 

Note that this is LESS THAN OR EQUAL TO.  If you want just less that, remove everything from "OR" on.

Labels