community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Announcement | We'll be doing maintenance between 9am-11am MT on Saturday, January 25th, which may impact your experience. Thanks for your patience as we work on improving the community!
SOLVED

Difference in Working Hours

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,

 

 

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.

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 

Pulsar

Take a look at the attached workflow:

image.png

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.

 

 

Highlighted
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