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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
A_Miller
Regular Visitor

Dynamic sort of items in stacked chart

Good morning,

 

I am new to Power BI, but have some experience with PowerPivot use. I have been searching the forum for an answer and I am not sure if I am looking for the right questions, but here is my problem.

 

I work in a tire manufacturing facility that assigns a barcode to every tire produced. When a tire is scrapped, we have a list of all the production details as well as the scrap reason in terms of a three digit code (ie, 41, 112, 60, etc).

 

I have created a stacked column chart, but I would like to sort this chart, dynamically, based on the count of values for each code. When I put this in a table, I can sort, but when I move it back to a chart the X-Axis goes back to numerically. My chart has reason codes on the X-Axis and the count of distinct barcodes for the Y-Axis.

 

Can someone help point me to an article or a solution that will change the sorting? I am trying RankX, but am struggling to get the ordering column to work properly.

 

Thanks.

1 ACCEPTED SOLUTION
stretcharm
Memorable Member
Memorable Member

1 REPLY 1
stretcharm
Memorable Member
Memorable Member

Not used this myself but here are examples of changing chart axis dynamically

 

http://tinylizard.com/dynamically-changing-chart-axis/

https://www.youtube.com/watch?v=n-OWNaCUU0o

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.