Forum Discussion

Let's avatar
Let
Frequent Visitor
8 years ago
Solved

How to sort stacked column chart in Power BI desktop?

Hello,   I would like to sort a stacked bar in Power BI. However, the option button at the top-right corner doesn't seem to provide the sort feature.     Here are the sort criteria I want...
  • v-ljerr-msft's avatar
    8 years ago

    Hi Let,


    The sort "The longest bar first" is available if the x-axis is type of Text.

    How can I make it work even with numbers (for consistency) ? (Besides, if x-axis is the type of Text, the chart has an horizontal scrollbar)


    To make the sort option work with numbers, you can just set X-Axis Type to "Categorical". However, with this option, all labels will be shown on the X-Axis, so an horizontal scrollbar will be shown up if the chart is not big enough. :smileyhappy:

     

     

    Regards