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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lekkerbek
Helper IV
Helper IV

Date sorting in Matrix

Hi,

 

I have created a matrix and I put the date in the columns field.

 

It gives me the information I want, but I want to start with the most recent year and previous years should be more to the right. It now starts with the oldest year available.

 

Is it possible to change the order in the Matrix visual?

7 REPLIES 7
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @lekkerbek,

As the @Greg_Deckler posted, please click the triangle button highlighted in red line at the column hearder, order by data ASC or DESC. 

 

Capture1.PNG

 

If this doesn't resovle your problem, please post detail information or screenshot.

 

Best Regards,
Angelia

Hi,

 

I believe you are referring to a table? My problem is with the matrix.

 

Knipsel.PNG

 

Hi @lekkerbek,

 

It's a matrix, I don't add the legend level, so it likes table. Based on your description, you can choose data rather than hierarchy.

 

1.PNG

 

Best Regards,

Angelia

Ah I see what you mean, but my date is the columns section (and needs to be there for the correct presentation). 

Hi @lekkerbek,

As I tested, we are unable to order the data directly in column level in Matrix visualization. Please review this article. Thanks for understanding.

 

Best Regards,
Angelia

Thanks for your suggestion. I get the following error when doing that:

 

Expression.Error: We cannot convert the value #date(2016, 12, 31) to type Number. Details: Value=31-12-2016 Type=Type

 

Perhaps I should just wait untill the feature is implemented.

Greg_Deckler
Community Champion
Community Champion

Sounds like you just need to adjust the order in the Rows section of the visual, you can just drag and drop the columns to change the order.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.