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
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
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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.