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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply

Is it possible to add rank values in bar graph in power bi

Hello.

I have 43 categorical values, and I constructed a bar chart using the temperature values. this chart is sorted, but i want to add the rank in the bar chart i built. I used dax formula to calculate the rank and I want to display these rank values in the grap bar.

I spent a lot of time looking for how to do this, but I can't. I need help please. If this is not possible, I would like to know if it is possible to use 2 variables in abscissa: one to display the 43 categorical values and the other to display the ranks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @gerard-kouadio ,

 

First of all, for the ranking value, I would recommend you to add a new column if it is for your subsequent operation, through this DAX sytnax:

 

Rank = RANKX('Table','Table'[Value])

 

and then you can create a clustered column to meet your needs, as the following shows,the categories are shown on the x-axis, along with the corresponding ranking values

vmengzhumsft_1-1661308280351.png

If this meets your needs, you can also refer to my test file.

 

Best regards,

Community Support Team Selina zhu

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

2 REPLIES 2
Anonymous
Not applicable

Hi @gerard-kouadio ,

 

First of all, for the ranking value, I would recommend you to add a new column if it is for your subsequent operation, through this DAX sytnax:

 

Rank = RANKX('Table','Table'[Value])

 

and then you can create a clustered column to meet your needs, as the following shows,the categories are shown on the x-axis, along with the corresponding ranking values

vmengzhumsft_1-1661308280351.png

If this meets your needs, you can also refer to my test file.

 

Best regards,

Community Support Team Selina zhu

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

 

Anonymous
Not applicable

Select the column you want to sort in the fields pane (right hand side), and this will show 2 new ribbons at the top ( Table Tools, Column Tools).

 

Select Column Tools, and next to summarisation properties is a Sort option. From the dropdown list, select the calculated column/formula you have created and it will apply the sorting option to the column.

transform99_0-1661124495318.png

 

 

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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