Forum Discussion
n_n
7 years agoFrequent Visitor
Sorting stacked bar chart legend
Hi community!
For stacked bar chart, how can I sorting legend based on value?
Thanks!
2 Replies
- tokyobaerFrequent Visitor
You could change the order of the legend (and thereby the order of the stacked bar chart) by means of a sort-by column:
https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
Does that do the job for you? If you really want to sort by the value, I could imagine calculating the sort-by column - but it would still be the same order for each year.