Alteryx Designer Desktop Discussions

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

Pick the row. with max value of another column

Good day. can someone help me to achieve on the below output.. I hav a table and I need to pick the row corresponding to the max. value of another column in the same table.

input:

namesubjectpercentage
alexenglish60
 maths70
 science80
richardenglish55
 history86
 geography90

 

output:

alexscience80
richardgeography90
6 RESPUESTAS 6
Emil_Kos
17 - Castor
17 - Castor

Hi @SrinivasanSugumaran,

 

So first we need to get the data in a proper structure. I have made a name column populated for all the rows. Afterwards, we need to sort the percentages from the highest to lowest and use the sample function to get the desired results:

 

Emil_Kos_0-1603090780151.png

The desired output:

 

Emil_Kos_1-1603090803164.png

 

Please mark it as a solution if this was helpful for you.

 

Good Luck!

 

Qiu
21 - Polaris
21 - Polaris

@SrinivasanSugumaran 
A solution that a bit different with @Emil_Kos .1019-SrinivasanSugumaran.PNG

thanks qiu

thanks emil

Qiu
21 - Polaris
21 - Polaris

@SrinivasanSugumaran 
Thank you for the mark aslo. Have a nice day!

Cassidy_M
Átomo

Wondering if anyone knows how to deal with ties in this scenario. Can you get Alteryx to return multiple rows if there are ties?


Etiquetas