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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

need help with rankx formule

hello i need some help 2 creat 2 rank colums based on points 

Krijgerss21_0-1686732029553.png

i need 2 rankx colums based on punten etappe and based on punten totaal so the people in colum naam wil get a rank based on the points

these are points people earn by predicting the tour de france 

1 REPLY 1
v-yueyunzh-msft
Community Support
Community Support

Hi, @Anonymous 

According to your description, do you want to create two ranking columns? Or what about creating a ranking column based on two columns?

According to your description and your screenshots, I don't fully understand your needs. For creating sort columns, I can give you two functions.

If you need to sort by a certain column, you can try to use the rankx function, for this , you can refer to :
Using the RANKX function in Power BI – SQLServerCentral

 

If you need to sort by multiple columns, you can try to use the RANK function, for this , you can refer to :
RANK function (DAX) - DAX | Microsoft Learn

 

 

If the above can't help you, you can describe your sorting logic in detail (such as which columns or columns need to be grouped), you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.