Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
luis_pflucker
Helper II
Helper II

how to sort matrix by column

Hi All,

please I wanted to sort the mattrix ordered by columns, in below mattrix I wanted to show as:

1st column --> 2-3 Days

2nd column--> 4-5 Days

3rd column --> 6-15 Days

4th column--> 16 - more Days

 

luis_pflucker_0-1741627845348.png

 

I tried using default sorting but no options to do that, any suggestion?.

Thanks in advance

Luis

1 ACCEPTED SOLUTION
mariussve1
Super User
Super User

Hi,

 

You need to have a another column in the table where you have this grouped days.


This column needs to be int:

2-3 Days = 1

4-5 Days = 2

6-15 Days = 3

and so on

 

Then you need to sort the original column by this new column:

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column


Br
Marius
BI Fabrikken
www.bifabrikken.no

View solution in original post

4 REPLIES 4
v-tsaipranay
Community Support
Community Support

Hi @luis_pflucker ,

 

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

 

Thank you.

v-tsaipranay
Community Support
Community Support

Hi @luis_pflucker ,
Thank you for reaching out to the Microsoft Fabric Community.


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


Thank you.

Hi @luis_pflucker ,

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 and give a 'Kudos' so other members can easily find it.


Thank you.

mariussve1
Super User
Super User

Hi,

 

You need to have a another column in the table where you have this grouped days.


This column needs to be int:

2-3 Days = 1

4-5 Days = 2

6-15 Days = 3

and so on

 

Then you need to sort the original column by this new column:

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column


Br
Marius
BI Fabrikken
www.bifabrikken.no

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.