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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Resolver
New Member

Ranking

Hello,

Having an issue with ranking my top routes by Total Orders.

For now there is a summarized table with data that goes to visuals, ranking is based on two things: first by order count, second if there are same values, ranking takes total revenue, but final result seem to have an issue, since there are two 4th places.

Adding snips:

Resolver_0-1747810843695.png

Resolver_1-1747810860785.png

 

 

1 ACCEPTED SOLUTION
mdaatifraza5556
Super User
Super User

Hi @Resolver 

Can you please try the below DAX.

Route Rank =
RANKX(
ALL('Routes'[Route Name]),
CALCULATE(SUM('Orders'[Total Orders]) * 1000000 + SUM('Orders'[Total Revenue])),
,
DESC,
Dense
)


If this answers your questions, kindly accept it as a solution and give kudos.

View solution in original post

1 REPLY 1
mdaatifraza5556
Super User
Super User

Hi @Resolver 

Can you please try the below DAX.

Route Rank =
RANKX(
ALL('Routes'[Route Name]),
CALCULATE(SUM('Orders'[Total Orders]) * 1000000 + SUM('Orders'[Total Revenue])),
,
DESC,
Dense
)


If this answers your questions, kindly accept it as a solution and give kudos.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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