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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ggenzi
Frequent Visitor

Sorting stacks in a Stacked Bar Chart

BI novice here, I've been playing with the software for about a month and I am beginning to use it seriously. I have read posts about how to sort the different columns in a stacked bar chart, but I don't understand how to sort the inidividual stacks within each column. I have tried dragging them in the values field, renaming them , changing their values etc. 

Again, I know how to sort the full columns and I have tried using the top right corner options, but to no avail. 

In the attached picture, I would like to display the 5 tiers from 5 to 1, instead of from 1 to 5.

 

Any suggestion? 

 

 

Stacks.PNG

1 ACCEPTED SOLUTION
ggenzi
Frequent Visitor

Ok so thanks to your help I've figured it out. I simply created a new table with two columns:

Column one: original category name (numerical value)

Column two: tweaked category names with increasingly more spaces (classified as categorical)

 

I then established a relationship between the new table and and the old one with the data, and in the "Legend" field of the chart I dragged the new field (Column two).

 

And it worked! Definitely more complex than needed though

 

Thanks

View solution in original post

4 REPLIES 4
sornavoor
Resolver I
Resolver I

AFAIK no direct way.   

 

You could try & see if you can enhance the visual it to add a sorter attribute to the column stacks.  

 

Finally, check the ideas section to see if there is already a request and vote for it; else  add an idea; Will certainly be useful for the masses.  

 

Regards! 

On second thoughs -  a dirty approach -  play with spaces in front of description.  Hope this helps! 

 

 

snip_20160720170010.png

Very interesting, thanks. I am not sure how to connect the original tiers to the new spaced description but I'll try, thanks!

ggenzi
Frequent Visitor

Ok so thanks to your help I've figured it out. I simply created a new table with two columns:

Column one: original category name (numerical value)

Column two: tweaked category names with increasingly more spaces (classified as categorical)

 

I then established a relationship between the new table and and the old one with the data, and in the "Legend" field of the chart I dragged the new field (Column two).

 

And it worked! Definitely more complex than needed though

 

Thanks

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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