Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

find total hours worked

dkma
8 - Asteroid

Hi all, 

i have below Dataset.

 

the first two rows of the data belongs to 13-sep date., and the last two rows data belongs to 14-sep. how to segregate this to find total hours worked. 

 

The date shows as 13-sep because the Pin is on 13-Sep. 

 

EMP IDDatePinDatePinPout
111112021-09-132021-09-132021-09-13 00:00:002021-09-13 04:00:00
111112021-09-132021-09-132021-09-13 04:30:002021-09-13 07:31:00
111112021-09-132021-09-132021-09-13 23:49:002021-09-14 04:00:00
111112021-09-132021-09-132021-09-14 04:30:002021-09-14 07:30:00

 

 

How to make it correct. the last two rows should be counted towards 14-sep

2 REPLIES 2
atcodedog05
22 - Nova
22 - Nova

Hi @dkma 

 

Would reference to Pout for date be the right thing to do.

 

Workflow:

atcodedog05_0-1632226699836.png

 

Hope this helps : )

pdave87
11 - Bolide

@dkma adding step 2 to what @atcodedog05 shared i.e. hours worked in screen-print below.

 

@atcodedog05 thanks for helping with the step 1. That's quickest solution and best way to solve it. Learning for me too. 

 

pdave87_0-1632227975983.png

 

Labels