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

Bar chart - adding rank numbers for easier identification of the Element's position

Hi,

 

I was wondering if it is possible for a bar chart to display ranking figures on the left side of the chart (as per the blue numbers in the below/image example):

Talos_1-1720017014899.png

Something like this ranking will help the User/Viewer when they are looking for a certain Local Authority, and it is a bit ridiculous for them to have to count (sometimes even going with the index finger over the screen) to see where 'Sunderland' is: is it the 9th or does it rank 12th?..

 

Any help will be great! I kept looking but I could find nothing on this. Cheers!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Talos 

 

@Tahreem24 Thank you very much for your timely reply. Please allow me to share other methods here.

 

I understand your needs and this is a very good idea. However, power bi does not support adding sort on the left side of visual.

 

However, I can show you another way.

 

You can create a measure dynamic calculated ranking and add it to visual tooltips so that when you view one of the bars, you can clearly see how it is sorted.

 

Here's some dummy data

 

“Table”

vnuocmsft_4-1720602081362.png

 

Create a measure.

 

Rank = 
RANKX(
    ALLSELECTED('Table'),
    CALCULATE(SUM('Table'[VALUES])),
     ,
    DESC,
    Dense
)

 

vnuocmsft_1-1720601897365.png

 

Here is the result.

 

vnuocmsft_5-1720602156329.png

 

vnuocmsft_6-1720602193414.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Talos 

 

@Tahreem24 Thank you very much for your timely reply. Please allow me to share other methods here.

 

I understand your needs and this is a very good idea. However, power bi does not support adding sort on the left side of visual.

 

However, I can show you another way.

 

You can create a measure dynamic calculated ranking and add it to visual tooltips so that when you view one of the bars, you can clearly see how it is sorted.

 

Here's some dummy data

 

“Table”

vnuocmsft_4-1720602081362.png

 

Create a measure.

 

Rank = 
RANKX(
    ALLSELECTED('Table'),
    CALCULATE(SUM('Table'[VALUES])),
     ,
    DESC,
    Dense
)

 

vnuocmsft_1-1720601897365.png

 

Here is the result.

 

vnuocmsft_5-1720602156329.png

 

vnuocmsft_6-1720602193414.png

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

 

 

Talos
Frequent Visitor

None of the links work: "Restaurant Mangement Dashboard" or any of the other ones...

Talos
Frequent Visitor

I think that the table-in-front-of-the-chart approach is a bit rudimentary, as I also have a slicer with Local Authorities, allowing Users to select just a few of them if they want to visualise just those and see how they compare to each other. And so the table would not be in line with the positions of the selected Local Authorities; plus, the ranking may not update to say 2, 1, 3 for example (if 3 Local Authorities have been selected). But thank you for this suggestion: it is an idea which may work for a static chart.

Tahreem24
Super User
Super User

@Talos You can take table visual and use this ranking column in it and place it wisely before the bar chart so it would look like same as shown in your pic.

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

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.

Top Solution Authors