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.

Multiple Conditions

sgaryali
8 - Asteroid

Hi

 

I want take the start time and end time from column D & E depending on the following conditions :-

 

1) If we have two shift in column C after one another for same date like we have in row 2 & 3 it should take start time from second row(D3) and end time from next date first row which is E(5) and then it should take duration for those rows and sum them like for date - 3/5/2022 sum of duration should be - F3 + F5 (i.e = 10)

 

2) If we have two shift in column C after one another for same date but next date is not in sequence like in row C7 we have date - 3/6/2022 and C8 we have 3/11/2022 then it should take start time from second row(D6) an end time from corresponding column (E6) and then it should take duration for those rows and sum them like for date - 3/6/2022 sum of duration should be - F6 (i.e = 5)

 

3) If we have only shift in first row then break and then shift in third row for same row like we have in row C8, C9, C10 then it should take start time from first row(D8) and end time from last row (E10) and then it should take duration for those rows and sum them like for date - 3/11/2022 sum of duration should be - F8 + F10 (i.e= 6)

 

 

Not sure how to do this can anyone help?

 

I attaching sample file also.

 

Thank you in advance.

4 REPLIES 4
mceleavey
17 - Castor
17 - Castor

Hi @sgaryali ,

 

this would change the format of how the data is displayed due to different aggregation levels, so can you post the spreadsheet showing the desired outcome?

 

Thanks,

 

M.



Bulien

sgaryali
8 - Asteroid

Hi @mceleavey 

 

Output should look like something like this.

sgaryali
8 - Asteroid

Hi

 

Can anyone help please?

sgaryali
8 - Asteroid

Can anyone help please?

Labels