Forum Discussion

Harineeeeeeee's avatar
1 year ago
Solved

PowerBI matrix visual drillup sorts automatically by alphabetical order

Hi All,

 

I am using PowerBI matrix visual to show hierarchy level info lets say I have level 1 and level 2 and description for it's corresponding I m using in the matrix visual if I expand the drill down it shows the level 2 if you see in the attached in the image one level drill down M01 first description is desc when I drill up D01 should desc instead it shows alpha which is means it is by default sorting by alphabetical how to make the desc that is first value comes when drilled up 

attaching the images. I tried inscription function which in turn shows empty when drilled up I want the first value to shown 

 

thanks in advance 

  • Hi Harineeeeeeee 

    To control the sorting order in a Power BI matrix when drilling up or down through hierarchy levels, you need to:

    1. Create a numeric sort order column for each hierarchy level that defines the desired display order.

    2. In the data model, select the description column, then use "Sort by Column" to sort it based on the corresponding sort order column.

    This way, the matrix will follow your custom order instead of defaulting to alphabetical sorting.

    Here's a step-by-step guide:
    How to sort by a column in Power BI

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

     

5 Replies

  • Hi Harineeeeeeee 

    To control the sorting order in a Power BI matrix when drilling up or down through hierarchy levels, you need to:

    1. Create a numeric sort order column for each hierarchy level that defines the desired display order.

    2. In the data model, select the description column, then use "Sort by Column" to sort it based on the corresponding sort order column.

    This way, the matrix will follow your custom order instead of defaulting to alphabetical sorting.

    Here's a step-by-step guide:
    How to sort by a column in Power BI

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

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Harineeeeeeee,

    Thanks for reaching out to the Microsoft fabric community forum.

    It looks like you are want to sort your data alphabetically in your matrix visual. As Ritaf1983 already responded to your query, please go through the response and check if it solves your issue. 

     

    I would also take a moment to thank Ritaf1983, for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.

     

    If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

    Best Regards,
    Hammad.
    Community Support Team

     

    If this post helps then please mark it as a solution, so that other members find it more quickly.

    Thank you.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Harineeeeeeee,

      As we haven’t heard back from you, so just following up to our previous message. I'd like to confirm if you've successfully resolved this issue or if you need further help.

      If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.


      If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
      Thank you for your patience and look forward to hearing from you.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi Harineeeeeeee,

        I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution so that other community members can find it easily.


        Thank you.