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

Getting top values and ranking them by percent

So i am making a top 10 table of total tourist by country this year and i need to rank them by percent difference between years.

Zygis123_0-1699607984955.png

right now i have them ranked by value, and now i should keep the top 10 an rank them by percent on the right
so it would look like this and ranking from 1-10

Zygis123_1-1699608066657.png

if i try to rankx the percent then there are higher percent values than these and they get ranked wrong.

 

 

5 REPLIES 5
ryan_mayu
Super User
Super User

@Anonymous 

 the percentage column is a measure?

maybe you can try this

Measure 2 = RANKX(ALL('Table'),[Measure],,DESC)

in the filter, set measure 2 is less than or equal to 10

11.PNG

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Zygis123_0-1699609136132.png

then i get this, as u can see it ranked the % right, but then i lose top 10 highest values

have you tried to apply the filters?

11.PNG





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Zygis123_0-1699609903225.png

seems like it

 

 

could you pls provide the pbix file?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.