Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

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)?

  • 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"))

    Sort1.jpg

    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-msft's avatar
    v-zhenbw-msft
    Community 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"))

    Sort1.jpg

    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.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you very much