Forum Discussion

NadiaK's avatar
NadiaK
Frequent Visitor
2 years ago
Solved

Sorting Columns in Matrix

I have a matrix, where I want to sort the column headers in the cronological order as it is the data table. Whatever I try, the matrix sort column headers alphabetic. I have tried adding numbered IDs for my column data, so it could sort it descending, but it seems like I only can sort on the row or value and not on the columns? 

 

I do not have the option "Sort by column" in my Power Bi Desktop

 

6 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi, NadiaK 

    Thanks for Wilson_ reply. Actually, Power BI Desktop has the Sort by column feature.



    Best Regards,
    Yang
    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

    • NadiaK's avatar
      NadiaK
      Frequent Visitor

      Thanks Anonymous 

       

      Do you also know, if it is possible to rotate the headers in the matrix visual, so it is vertical og then save some space in the columns width? 

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi, NadiaK 

        Does turning rows into columns and columns into rows meet your needs? Or manually make the column widths smaller(Place the cursor at the edge of the column).


        In my understanding you want to have the same effect as in the picture below, so as to save the entire matrix rows.

         

        Best Regards,
        Yang
        Community Support Team

         

        If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
        If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

        How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

  • Wilson_'s avatar
    Wilson_
    Memorable Member

    Hi NadiaK,

     

    The ideal solution would be to ask whoever can edit the model to do the Sort by Columns option that you mentioned.


    ----------------------------------
    If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)

     

    P.S. Need a more in-depth consultation for your Power BI data modeling or DAX issues? Feel free to hire me on Upwork or DM me directly on here! I would love to clear up your Power BI headaches.