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
Carly_717
Frequent Visitor

Create ranking horizontally

Hi, 

I would like to create a measure in pbi to get the ranking horizontally.

For Example, the below are the sales.

Carly_717_0-1733295014434.png

I would like to create a meausure to get the ranking for country.

Carly_717_1-1733295176415.png

Thanks in advance everyone.




1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Carly_717 , Try using 

Country Sales Rank =
RANKX(
ALL('Sales'[Country]),
CALCULATE(SUM('Sales'[SalesAmount])),
,
DESC,
Dense
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@Carly_717 , Try using 

Country Sales Rank =
RANKX(
ALL('Sales'[Country]),
CALCULATE(SUM('Sales'[SalesAmount])),
,
DESC,
Dense
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






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.