Alteryx Designer Desktop Discussions

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

Sorting Data

AbhijeetChib
8 - Asteroid

I have the following data, which needs to be sorted according to most recent date. However if the most recent date has a group which is "Out of Scope" then that needs to be changed to the group of the next most recent date.  For example

Ticket Number Group ScopeDateStatus
A1234ABOut Of Scope5/19/2023Closed
B1234BAOut Of Scope5/19/2023Open
C1234CAOut Of Scope5/19/2023Open
D1234DAIn scope5/14/2023Open
A1234ABIn scope5/16/2023Open
A1234ABIn scope5/15/2023Open
A1234ABIn scope5/14/2023Open
D1234DBOut Of Scope5/19/2023Closed

 

In this data ticket number A1234 needs to sorted and the most recent date and status has to be picked. In this case A1234, date 5/19/2023 and status closed. However the field group is AB which is out of scope, in this case it needs to be changed to the groupof the next most recent date which is A1234-5/16/2023 and status open

 

Any ideas ?

4 REPLIES 4
binuacs
20 - Arcturus

@AbhijeetChib @Would you be able to provide the expected result as well, that would help to understand the logic in better way 

AbhijeetChib
8 - Asteroid

 

 

 

Input 

Ticket Number Group ScopeDateStatus
A1234ABOut Of Scope5/19/2023Closed
B1234BAOut Of Scope5/19/2023Open
C1234CAOut Of Scope5/19/2023Open
D1234DAIn scope5/14/2023Open
A1234CDIn scope5/16/2023Open
A1234CDIn scope5/15/2023Open
A1234CDIn scope5/14/2023Open
D1234DBOut Of Scope5/19/2023Closed

 

 

 

Here is the expected Output

Ticket Number Group ScopeDateStatus
A1234CDOut Of Scope5/19/2023Open
B1234BAOut Of Scope5/19/2023Open
C1234CAOut Of Scope5/19/2023Open
D1234DAOut of Scope5/19/2023Open
Raj
16 - Nebula

Hope this help

korevis
5 - Atom

Hi Abhijeet,

 

You need to take two steps to get the mentioned Result for all the ticker Number. 

Step 1 : add the sort tool, select the date column and order select the Descending.

Step 2 : add the Filter   [Scope] = "In scope" and [Status] = "Open"

Click the Run you get the result. 

Labels