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
skhanna
New Member

Sort columns in Matrix

Hi,

 

I am new to Power BI and will appreciate any help with my question.

 

So, I have a matrix that tells the Visits for Doctors at corresponding Hospitals,

skhanna_0-1669898995933.png

I am able to sort the matrix at row level and able to achieve this result as shown below.

skhanna_1-1669899068249.png

I would like to further sort this matrix at column level, and the final result should look like this,

skhanna_2-1669899109025.png

Is there any workaround to this? Any help will be appreciated.

 

Thanks!!

2 REPLIES 2
djurecicK2
Super User
Super User

Hi @skhanna ,

 Please see this article for how to do custom sorting:

https://radacad.com/sort-a-column-with-a-custom-order-in-power-bi

 

Please accept as solution if this answers the question- thanks!

Hi @djurecicK2,

 

The columns here are dynamic so creating a custom order won't work out.

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.