Forum Discussion
Sort Stacked area chart
Hi, I have a data for price monitoring done by 3 rounds, in each round we took the low, mid, and high price for an item, like this:
and I want to use the Stacked area chart:
How can I sort the Axis(rounds: round 1, round 2, round 3) and the Legends (Prices: low at the bottom then mid then high)?
Hi Anonymous ,
On your area chart, on the top right, click on the 3 dots and you can see options to sort your axis as below:
Use this to sort your x-axis with values - Round1, Round2, Round3.
To sort your Legend, refer following article:
https://www.seerinteractive.com/blog/reorder-powerbi-legend/
Thanks,
Pragati
Hello @DiaaDag ,
Also, if you want to put the Bass to the bottom,you can create three measures and sort them under Values.
High = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Price] = "High"))Mid = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Price] = "Mid"))Low = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Price] = "Low"))If you don't meet your requirements, could you show the exact expected result based on the table you shared?
Best regards
Community Support Team _ zhenbw
If this post helps,then consider Accepting it as the solution to help other members find it more quickly.
BTW, pbix as attached.
3 Replies
- v-zhenbw-msftCommunity Support
Hello @DiaaDag ,
Also, if you want to put the Bass to the bottom,you can create three measures and sort them under Values.
High = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Price] = "High"))Mid = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Price] = "Mid"))Low = CALCULATE(SUM('Table'[Amount]),FILTER('Table','Table'[Price] = "Low"))If you don't meet your requirements, could you show the exact expected result based on the table you shared?
Best regards
Community Support Team _ zhenbw
If this post helps,then consider Accepting it as the solution to help other members find it more quickly.
BTW, pbix as attached. - Pragati11Super User
Hi Anonymous ,
On your area chart, on the top right, click on the 3 dots and you can see options to sort your axis as below:
Use this to sort your x-axis with values - Round1, Round2, Round3.
To sort your Legend, refer following article:
https://www.seerinteractive.com/blog/reorder-powerbi-legend/
Thanks,
Pragati
- AnonymousNot applicable
Thank you very much