Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Sorting by 2 factors

Hi,

 

I have this graph:

 

I would like to sort it by Month Name and also the highest value, meaning that, the MAINBOARD category would be the one on the leftside, but inside this category, it would firstly appear April, then May and lastly June, and then so on and so forth with HINGE UP, RAW PANEL, etc.

 

These values are the sum of a column called Column1, and the Month Names for the X axis I have a DIM table with the month number sorted, and a relationship created with this month name and the one from the fact table.

 

Thanks!

 

  • Hi Anonymous 

    As per testing a column chart's legend can be sorted in descending or ascending order only but not based on its relative value.  You can try the approach in the attached pbix which uses a disconnected table. The legends and the column chart are two separate visuals.

     

     

5 Replies

  • Ashish_Excel's avatar
    Ashish_Excel
    Icon for Solution Supplier rankSolution Supplier

    Hi,

    Conver the visual to a table visual and ensure that the month field is dragged from the Calendar table.  Click on the heading of the field to sort it in ascendong order.  Now press the Ctrl key and click on the month to sort it in ascending order.  Now switch the visual to a column chart.

  • Hi Anonymous 

    As per testing a column chart's legend can be sorted in descending or ascending order only but not based on its relative value.  You can try the approach in the attached pbix which uses a disconnected table. The legends and the column chart are two separate visuals.

     

     

    • v-aatheeque's avatar
      v-aatheeque
      Icon for Community Support rankCommunity Support

      Hi Anonymous ,
      I wanted to follow up on this discussion.

      The guidance provided by danextian   earlier explainsto sort it by Month Name and also the highest value, meaning that, the MAINBOARD category.

      If this information has resolved your issue, please consider marking it as the Accepted Answer. This will assist others in the community who may have similar questions.

      If you are still experiencing challenges or require further clarification, please don’t hesitate to share more details. We are here to help!

      Thank you for being an active member of the Microsoft Fabric Community!

       

      • v-aatheeque's avatar
        v-aatheeque
        Icon for Community Support rankCommunity Support

        Hi Anonymous ,

        Just following up on this discussion.

        The guidance shared earlier by danextian  explains how to sort the data by Month Name as well as by the highest value, specifically highlighting the MAINBOARD category.

        If this resolved your issue, kindly consider marking the response as the Accepted Answer  it helps other community members who might be facing similar challenges.

        If you're still encountering issues or need further clarification, feel free to share more details we’re here to help!

        Thank you for being an active part of the Microsoft Fabric Community!