We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Finding hours using multi row formula

PNC97
8 - Asteroid

I'm trying for a solution where multiple columns has datetime as below table, I've tried using multirow formula "IF ID = Row-1:ID And End = Row-1:Start  and applied rank formula but I'm not getting expected output.

 

IDStartEnd
112/29/2021 8:0712/29/2021 8:30
112/29/2021 8:3012/29/2021 9:00
112/29/2021 9:0012/29/2021 9:30
112/29/2021 9:3012/29/2021 10:00
112/29/2021 10:0012/29/2021 10:30
112/29/2021 13:0012/29/2021 13:30
112/29/2021 13:3012/29/2021 14:00
112/29/2021 14:0012/29/2021 14:30
112/29/2021 14:3012/29/2021 15:00
112/29/2021 15:0012/29/2021 15:30
112/29/2021 15:3012/29/2021 16:00
112/29/2021 16:0012/29/2021 16:30
112/29/2021 16:3012/29/2021 17:00
112/30/2021 7:0012/30/2021 7:30
112/30/2021 7:3012/30/2021 8:00
112/30/2021 8:0012/30/2021 8:30
112/30/2021 9:5112/30/2021 10:00
112/30/2021 10:0012/30/2021 10:30
112/30/2021 13:0012/30/2021 13:30
112/30/2021 13:3012/30/2021 14:00
112/30/2021 14:0012/30/2021 14:30
112/30/2021 14:3012/30/2021 15:00
112/30/2021 15:0012/30/2021 15:30
112/30/2021 15:3012/30/2021 16:00
112/30/2021 16:0012/30/2021 16:30
112/30/2021 16:3012/30/2021 17:00
112/25/2021 7:0012/26/2021 16:00
112/26/2021 7:0012/27/2021 17:00

 

And I'm trying to find a solution where to get an output as below 

 

IDStartEnd
112/29/2021 8:0712/29/2021 10:30
112/29/2021 13:0012/29/2021 17:00
112/30/2021 7:0012/30/2021 10:30
112/30/2021 13:0012/30/2021 17:00
112/25/2021 7:0012/26/2021 16:00
112/26/2021 7:0012/27/2021 17:00

 

Thanks for the help in advance.

5 REPLIES 5
mbarone
16 - Nebula
16 - Nebula

I'm not understanding the actual logic you're looking for, but it sounds like the Multi Row Tool is what you want along with a conditional statement.

 

I'm not sure by your example how 12/29/2021 8:07 is pairing up with 12/29/2021 10:30 (same with the rest of the examples).

atcodedog05
22 - Nova
22 - Nova

Hi @PNC97 

 

Here is how you can do it.

Workflow:

atcodedog05_0-1642422019597.png

 

Hope this helps : )

 

mbarone
16 - Nebula
16 - Nebula

Ah....the grouping aspect wasn't clicking in my head.  @atcodedog05 has the proper solution!

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @PNC97 

Cheers and have a nice day!

PNC97
8 - Asteroid

@atcodedog05 @mbarone  Thanks for you help 😀

Labels
Top Solution Authors