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
Anonymous
Not applicable

DAX Calculated Table - Ordered Rank

I know there are similar posts out there, but after hours of googling, I couldn't find one that fit exactly what I've been trying to do and failing time and time again at. I originally posted this question as a reply on a closed topic, so I've started a new one.

 

Is there a way to do a rank but have ties come out 1, 2, 3 instead of 1, 1, 3? It's a calculated table so I cant use Power Query. I've been googling and trying different things for hours with no solution. 

 

Reason# CasesUsing RankXWhat I want
Lorem3411
ipsum3412
dolor1833
amet544
consectetuer545
adipiscing546
Maecenas277
porttitor188

 

Maybe if I say why I want this, there's an alternate solution I'm not thinking of:

 

I need to display the Top 5 Reasons in a page:

 

Reason Lorem

# Cases: 34

Reason ipsum

# Cases: 34

Reason dolor

# Cases: 18

Reason amet

# Cases: 5

Reason consectetuer

# Cases: 5

 

I realize that one of the ones that are 5 gets cut off arbitrarily, but its ok. 

 

Any ideas?

 

Originally I did create this table using Power Query and an Index column, but the report kept throwing weird errors in the Service so I've had to go to a calculated table.

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

Download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thank you! This is working exactly how I need it to! Brilliant!! @Ashish_Mathur 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.