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 September 15. Request your voucher.

Reply
Anonymous
Not applicable

Query regarding matrix sorting

Sushain_Koul_0-1720003600142.png

Hello All,
Is there a way I can sort my matrix visual by clicking any of the column fields for example Impressions, Clicks, Spend etc? Any way out be it using DAX or any other technique. Pls do let me know. It will be very helpful.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

Yes I know but there is an alternative to sort by columns in matrix but it comes with a drawback.

View solution in original post

4 REPLIES 4
bhanu_gautam
Super User
Super User

@Anonymous , In Power BI, you can sort a matrix visual by clicking on the column headers directly within the visual. This feature is built into Power BI and does not require any additional DAX or techniques. Here’s how you can do it:

 

Sorting a Matrix Visual by Column Headers
Create or Open Your Matrix Visual:

Ensure you have a matrix visual in your Power BI report with the necessary fields added to the rows, columns, and values.
Click on the Column Header:

Simply click on the header of the column you want to sort by. For example, if you want to sort by "Impressions," click on the "Impressions" column header.
Clicking once will sort the column in ascending order.
Clicking again will sort the column in descending order.
Clicking a third time will remove the sort.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Anonymous
Not applicable

Sushain_Koul_0-1720004162002.png

Hi @bhanu_gautam ,
Thx for your help. Can u show it practically because matrix doesnt support sorting by just clicking on column header. We can achieve sorting by clicking on Row fields not on Column fields. Above I have shared screenshot when I clicked Impression column.

Anonymous
Not applicable

Hi @Anonymous ,

I think your understanding is perfectly fine, in matrix you can only click sort by to select.

vyilongmsft_0-1720159234403.png

Other than that, there is no other way to sort on specific columns, you can check this topic for more information: Solved: Reorder columns for Matrix visualization (with sor... - Microsoft Fabric Community

 

 

 

Best Regards

Yilong Zhou

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

Anonymous
Not applicable

Hi @Anonymous ,

Yes I know but there is an alternative to sort by columns in matrix but it comes with a drawback.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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