Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
jjustingkm
Creator II
Creator II

Sorting on stacked bar

I have a stacked bar with below data. The year comes in the  X axis and sales stacked on the Y based on region, and region will be displayed on the legend. I would like to sort  the legend based on total sales, but B will always be at the top since the highest amount in 2018 is with B. The graph is sorted first based on Year ascending. I tried using formula sorting for sales , but still B comes at the top.

yearregionSales
2018A40
2018B60
2019A20
2020A100
2020C110
0 Replies