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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ta5656
Helper I
Helper I

On 100% stack column chart how to sort data descending

I have a 100% column stack visual as shown below, if you see the data on each column is not sorted descending(what I mean is 30.58% for 'Canada' Country should show on top).

pf.PNG

What I'm trying to visualize is, Let's take a example as 'Canada' from the above visual. The data is showing as 

19.16%, 13.38%, 30.58%,10.90%, 10.49%,15.49% (from top to bottom). But, what I really want to visualize is 30.58% should show top since it's highest percentage, followed by 19.16%, 15.49%, 13.38%, 10.90%, 10.49%. 

 

What I tried: I tried sort by option that is available on PowerBI but no luck, it's sorting by 'Country' Alphabet order but not the numbers (I tried both Country and Sales as shown in image below).

 

sortby (I tried, but no luck)sortby (I tried, but no luck)

 

Any help/suggestions?

 

 

Thanks!

 

 

6 REPLIES 6
mussaenda
Super User
Super User

As you can see, it follows the order of the legend.

If you want, you can add another column where you will put the correct order and then use it to sort your column

Good catch. But, how can I add another column? because the values are dynamic may vary for each country?

 

here is the file, could you please show me how to do it?

 

Thanks!

Ashish_Mathur
Super User
Super User

Hi,

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thank you, Ashish for your response.

 

Please follow this link to download file. 

Hi,

I tried but could not solve it.  Sorry.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

No problem, thank you for looking at it. 

 

I appreciate your help.

 

Thank you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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