Alteryx Designer Desktop Discussions

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

picking the higher number

ntudev
8 - Asteroid

I need a formula or anyway, that can just show me the below. I want to rank the players by the score, so the highest score will always get Rating 1 and so on.

 

GamePlayerScoreRating
1Lebron 783
2Lebron 901
3Lebron 822
1Jordan902
3Jordan951
2Jordan723
8 REPLIES 8
DataNath
17 - Castor

Would this be suitable @ntudev? Basically just sorting each player by their score from highest to lowest and then using a grouped ID to assign the rank:

 

DataNath_0-1657642835541.png

BrandonB
Alteryx
Alteryx

Multi-row formula should do the trick

 

BrandonB_0-1657642894318.png

 

binuacs
21 - Polaris

@ntudev one way of doing this

binuacs_0-1657643150181.png

 

Robin_McIntosh
11 - Bolide

Depending on how you want to group, just change the sorting and/or multi-row group.

Robin_McIntosh_0-1657643302308.png

 

Goldrickd
5 - Atom

Annotation 2022-07-12 123104.pngAnnotation 2022-07-12 123127.png

 

 

ntudev
8 - Asteroid

thanks everyone, this is perfect. I just ran into another problem, can we get the rating to also say 1 if the 2 high scores match for the player? like Game 2 and 4 both have 90 points so they should both be Rating 1.

 

GamePlayerScoreRating
1Lebron 783
2Lebron 901
3Lebron 822
4Lebron 901
1Jordan902
3Jordan951
2Jordan723
DataNath
17 - Castor

@ntudev change the Multi-Row Formula expression to:

 

If [Score]=[Row-1:Score] then [Row-1:Rank] else [Row-1:Rank]+1 endif

binuacs
21 - Polaris

@ntudev 

binuacs_0-1657644793650.png

 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels