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
Redraidas1
Helper I
Helper I

RANKX - Dense not working

I have the below measure, however, as you can see in the screenshot, Dense is not working for some reason. Any ideas why?

Rank Measure (TOP10) = RANKX ( ALLSELECTED ( MainMarketQuality ), [Total Score],, ASC, Dense )

Rank.jpg

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

The reason is that the ranking options have duplicate values, so you need to rank multiple columns.

Please refer to this blog:

https://www.sqlbi.com/articles/rankx-on-multiple-columns-with-dax-and-power-bi/ 

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

The reason is that the ranking options have duplicate values, so you need to rank multiple columns.

Please refer to this blog:

https://www.sqlbi.com/articles/rankx-on-multiple-columns-with-dax-and-power-bi/ 

amitchandak
Super User
Super User

@Redraidas1 , Measure rank is context sensitive , if you are any column outside MainMarketQuality table, then rank will inside that column

 

For Rank Refer these links
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-finale

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.