Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bovkurka
New Member

Help with a calculated column ranking

Hello, I've searched through nearly every post I could to try and solve this before posting, but none of the solutions have worked for me and I'm not sure why - hoping someone can give me some insight into what I'm doing wrong.

 

I need to rank a column of point values for users who are earning points in an incentive program. I am summing up their point total using a simple measure (form a table called "JDIIdeas" and a column called "Previous Month Points") in a different table called "Participants".

 

Previous Month Total Points = sum(JDIIdeas[Previous Month Points]).

 

This produces (in the Participants table):

bovkurka_0-1651251342167.png

 

I am then adding in the following ranking formula in a new column in the Participants table (this isn't my own formula, I found it on the internet so I'm not sure it's the right way to do it):

 

Previous Month Rank =
var a = RANKX(Participants,Participants[Previous Month Total Points])
RETURN
a

 

I then get this result in the Participants table:

 

bovkurka_1-1651251429375.png

 

The problem is that the ranking is skipping numbers and I'm not sure how to fix it. I want the output to be:

bovkurka_2-1651255981777.png

 

My BI knowledge is limited and while I believe the issue is related to using RANKX (and not using it properly for this situation), I do not know what other methods can work to do this. 

 

Thanks

1 ACCEPTED SOLUTION
tackytechtom
Super User
Super User

Hi @bovkurka ,

 

Is it this you are looking for? 🙂

tomfox_0-1651258777567.png

 

Here the DAX:

Previous Month Rank = 
var a = 
RANKX ( 
    Table4,
    Table4[Previous Month Total Points],
    , DESC
    , DENSE
    )
RETURN
a

It is the DENSE attribute, which is doing the trick. Let me know if this helps! 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

2 REPLIES 2
tackytechtom
Super User
Super User

Hi @bovkurka ,

 

Is it this you are looking for? 🙂

tomfox_0-1651258777567.png

 

Here the DAX:

Previous Month Rank = 
var a = 
RANKX ( 
    Table4,
    Table4[Previous Month Total Points],
    , DESC
    , DENSE
    )
RETURN
a

It is the DENSE attribute, which is doing the trick. Let me know if this helps! 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Tom - thank you! worked perfectly! 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.