Forum Discussion

Pricey79's avatar
Pricey79
Helper V
5 years ago
Solved

Stacked Graph Help Please

Hello. I was hoping someone could help me please.

 

I have the below graph (100% stacked column) with three colours for three sets of data: Early, On Time and Late

 

 

Is it possible to have the red which is late, always be on top rather than the middle please?

 

Thank you in advance 

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi Pricey79 ,

     

    You can try to sort the field in Lengend.

    [Hit/Miss] is a column that contains three attributes: LATE, ON TIME and EARLY, right?

     

    First, you need to create table by entering data as follows

    Then select the TYPE column and sort by the sort column.

    In my example, I use it to connect [ctbr_type], you can judge the connection of your relationship according to the specific situation.

     

    Finally, you can see that LATE is at the top instead of in the middle. Because Power BI sorts by the first letter of the text by default, LATE is in the middle.

    The field used in Legand is the TYPE column in the new table.

     

    You can check more details from the attachment.

     

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

8 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Pricey79 ,

     

    You can try to sort the field in Lengend.

    [Hit/Miss] is a column that contains three attributes: LATE, ON TIME and EARLY, right?

     

    First, you need to create table by entering data as follows

    Then select the TYPE column and sort by the sort column.

    In my example, I use it to connect [ctbr_type], you can judge the connection of your relationship according to the specific situation.

     

    Finally, you can see that LATE is at the top instead of in the middle. Because Power BI sorts by the first letter of the text by default, LATE is in the middle.

    The field used in Legand is the TYPE column in the new table.

     

    You can check more details from the attachment.

     

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Pricey79's avatar
      Pricey79
      Helper V

      Anonymous You are an absolute star, that works perfectly.  Thank you so much for your time sir. 

  • vanessafvg's avatar
    vanessafvg
    Community Champion

    firstly what format is your data in, very hard to know how to sort it without understanding how you have modelled your data please provide a pbix or some data in text form or a view of how your data looks