In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Identify 1st Max 2nd Max 3rd Max in a row

SrinivasanSugumaran
8 - Asteroid

hi Team,

I have a dataset which has 70+ cols (Cols are dynamic can be more than 70 as well or less than 70 well)... have listed 5 cols.

and there are 300 + rows(have listed 4 rows)..

for reach row i need to find out the 1st max, 2nd max, 3rd max for all the data.

 

SalesA1A2A3A4A51st Max2nd Max3rd Max
Newyork22351532
chicago39734974
orlando43641643
washington51756765

 

appreciate your help.

thanks

Ss

5 REPLIES 5
jrlindem
12 - Quasar

Here's a workflows (below and attached), that accomplishes this and scales with more rows and/or columns.  You just need to maintain a unique identifier so you can transpose and crosstab.  I used your [Sales] field, but you could add a row_number if there could be duplicates.

 

Also, you don't necessarily need the multi-row-formula tool if you have a version of Alteryx that supports the record-id tool with group by.  

 

jrlindem_0-1761220504385.png

 

Hope this helps, -Jay

Qiu
21 - Polaris
21 - Polaris

@SrinivasanSugumaran 
I tried with Tile tools to identify the duplicated Value among A1 - A5 for each row, then pick only unique top3 value.

1023-SrinivasanSugumaran.jpg

binu_acs
21 - Polaris

@SrinivasanSugumaran Another approach

binu_acs_0-1761234969589.png

 

flying008
15 - Aurora

Hi, @SrinivasanSugumaran 

 

Another dynamic solution like @binu_acs :

 

录制_2025_10_24_09_00_26_406.gif

SrinivasanSugumaran
8 - Asteroid

thanks @flying008 ; 

@binu_acs 

@Qiu 

@jrlindem .. it workd.

Labels
Top Solution Authors