Free Trial

Alteryx Designer Desktop Discussions

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

Data organisation : Grouping data

Suvasini
7 - Meteor

Hi all,

 

I have a dataset which looks like this:

Train NoDistanceOriginDestination
1000109AS
1000131BT
1000262CU
1000107DV
1001463EW
1002468FX
1002308GY
1002374HZ

A particular train travels through multiple routes. I need to first group the data train wise then select the highest distance for than train and show the corresponding origin and destination. I tried doing so using a summarize tool with train (group up) followed by distance (max). How do I get the corresponding origin and destination for this set? 

 

In this example, output should look like this:

 

Train NoDistanceOriginDestination
1000262CU
1001463EW
1002468F

X

 

Would appreciate any help. Thanks!

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @Suvasini,

 

You need to sort the data and then use the sample tool:

Emil_Kos_0-1615275814568.png

The output:

 

Emil_Kos_1-1615275823478.png

 

Qiu
21 - Polaris
21 - Polaris

@Suvasini 
Just try another little different one.

CaptureB2.PNG

Labels
Top Solution Authors