Forum Discussion
RANKX HELP
Hi LDC20 ,
This is because Sales Rep ranked 4 will have same transaction counts. Same would be rank 5,9,10.
What is the end output needed.
kindly share sample data.
Regards,
Harsh Nathani
Thanks for the reply
In my rankings I dont want it to skip any numbers
- lbendlin6 years ago
Super User
Create an index column over your numbers instead of using RANKX, or use the DENSE ties option if you insist on using RANKX
https://docs.microsoft.com/en-us/dax/rankx-function-dax#syntax
- LDC206 years agoFrequent Visitor
I added in the DENSE and its still ranking similar values as the same
See attached screenshot
- Anonymous6 years agoNot applicable
Hi LDC20 ,
Create a measure
Randome = RAND()
Then add this measure to your ranking measure
RankingTrans = RANKX(ALL('CCData'[Sales Rep]), [TransCount] + [RAND])
You will get rank as 1, 2 ,3 ,4.2,4.5 ... etc
else do you have any other supporting column like date,.
Then follow this articles
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finaleelse pls follow this solved solution
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)