Join the Alteryx Community’s Maveryx Summer Cup event! Compete, network with others, and earn your gold through a series of challenges from July 24th to August 11th. Learn more about the event here.

Alteryx Designer Desktop Discussions

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

Calcualation

aparna0208
8 - Asteroid

Hi,

 

I have a dataset that includes the day and duration that a process was run. On the same day it would have run multiple times and logged the duration. Wanted to know if there is a way to identify the two earliest run from each day? Thanks in advance

 

WF day        Duration

Mon              05:54:00

Mon              05:59:00

Mon               06:13:00
Tue                06:25:00

Tue                06:26:00

Tue                 12:04:00

Tue                 13:55:00

4 REPLIES 4
apathetichell
19 - Altair

is duration stored in a time?

 

sort wf day and duration

sample choose the first 2. group by wf day. like the attached workflow...

 

 

Qiu
21 - Polaris
21 - Polaris

@aparna0208 
If we stick to the word "Calculation"

Capture2A.PNG

 

apathetichell
19 - Altair

@QiuI like it! I think you can use: datetimediff([3],"00:00:00","seconds") where [3] is your time column and get the same result - no?

Qiu
21 - Polaris
21 - Polaris

@apathetichell 

Thank you for the advice. It is simplier.

Capture2B.PNG

Labels