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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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