Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Solved! Go to Solution.
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
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
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
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
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
68 | |
43 | |
34 | |
26 |
User | Count |
---|---|
86 | |
50 | |
45 | |
38 | |
38 |