Alteryx Designer Desktop Discussions

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

Ranking column values

RVDL
7 - Meteor

Hi All,

 

Suppose I have the following table:

 

NameTest1Test2Test3
Aa817081
Bb90 95
Cc 23 

 

Now for each row, I need to rank the values from high to low, and take the middle value.

 

For the first row, the ranking is 81, 81, 70. The second value now is 81.

For the second row, the ranking is 95, 90, - . The second value is 90.

 

Note - ranking from low to high and taking the middle value also works of course.

 

If a row only has one value, we simply take that value.

 

Thus I want to end up with a table like:

NameTest1Test2Test3Final
Aa81708181
Bb90 9590
Cc 23 23

 

I have no idea how to do this. Some help would be appreciated. Thanks.

6 REPLIES 6
caltang
17 - Castor
17 - Castor

You can do it like so:

 

Screenshot 2023-07-11 085750.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
flying008
14 - Magnetar

Hi, @RVDL 

 

Please try this way:

录制_2023_07_11_09_14_10_145.gif

caltang
17 - Castor
17 - Castor

Similar concept to yours, but mine is overengineered haha!

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Qiu
21 - Polaris
21 - Polaris

@RVDL 
A bit late for the party.
I was trying to use Tile tool and end up many other tools.

0711-RVDL.PNG

RVDL
7 - Meteor

@caltang @Qiu @flying008 Thank you all for your help. Always nice to see how a problem can be solved in various ways.

caltang
17 - Castor
17 - Castor

If it helps, you can mark all three as possible solutions too! It helps to close this thread and helps others with similar problems to you to find the solution more quickly.

 

Thanks,

Cal

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
Labels