Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Ranking based on ID and Date Time

zealisk
6 - Meteoroid

Hi everyone,

 

I have the following data set sorted by ID and Date Time

Sometimes the ownership changes in the same hour and time.

 

IDOld OwnerNew OwnerDate Time

1

RichardJohn2021-11-11 10:02
1JohnJane2021-11-11 11:50
1MirandaJane2021-11-11 11:50
1JaneMiranda2021-11-11 11:50
1JaneMiranda2021-11-11 11:50
2RaulRicardo2023-05-02 12:23
2BobbyNila2023-05-02 16:36
2RicardoBobby2023-05-02 16:36

 

I need to rank them based on ID so the output is as follows:

 

IDOld OwnerNew OwnerDate TimeRank
1RichardJohn2021-11-11 10:021
1JohnJane2021-11-11 11:502
1MirandaJane2021-11-11 11:504
1JaneMiranda2021-11-11 11:503
1JaneMiranda2021-11-11 11:505
2RaulRicardo2023-05-02 12:231
2BobbyNila2023-05-02 16:363
2RicardoBobby2023-05-02 16:362

 

 

 

I was able to do it for ID 2 with multi-row formula.

I'm not able to figure out ID 1

2 REPLIES 2
Luke_C
17 - Castor
17 - Castor

@zealisk What's the logic in the case of the time being the same? 

 

Generally you could sort and either use a multi row or tile tool to assign, grouping by ID.

zealisk
6 - Meteoroid

Hi Luke,

 

There's another data set with actions and I need to know who made those actions based on who was the Owner at that time. \

 

So for example, an action for ID 1 that occured in 2021-11-11 14:52 is done by Miranda.

 

I hope that makes sense

Labels
Top Solution Authors