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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rsanjuan
Helper IV
Helper IV

Sort column headers in Matrix Visual

Is there a way to sort the column headers in the matrix visual?

 

Capture.JPG

 

For example, I would like 2016 data, then 2015 data.

 

Thanks!

 

3 REPLIES 3
turbobeagle
Regular Visitor

I want to sort the date which is in the columns by descending order.....how is that done?  THANKS

Anonymous
Not applicable

The visual itself doesn't allow it, however if you create a sort column where you reverse the order, then you can sort in reverse.  For example if you case was months 1 to 12. You would assign a sort order of 1 to your 12th month, 2 to your 11th month etc.

 

The down side of this approach will be that your months will sort backwards everywhere for that field.  You could get around this problem by having 2 different Date tables. One that sorts forwards and the other one that sorts backwards.

Anonymous
Not applicable

If your data is of Type Date, it will already sort in chronological.  If you don't have it in type Date but another field in the same table contains the date data, you can instruct Power BI to Sort BI.  This is done by moving to the Data View, selecting your column and pressing the "Sort By" button in the ribbon.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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