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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
charbaugh
Helper I
Helper I

Need help with sorting a visual

I have a matrix visual in a report that has dates as the column headers, and I want them to sort in order by date.  Note they currently sort numerically.  Can you point me in the rght direction?

 

Capture.PNG

3 REPLIES 3
Anonymous
Not applicable

Hi@charbaugh,

 

Please check the data type of the date column, in which case it is most likely the text type. 

0301-A.png

 

You can also sort the column in query editor.

Hope it helps.

 

Best Regards,

Caitlyn Yan

 

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

amitchandak
Super User
Super User

@charbaugh , They are sort Ascending and you want sort descending ?

 

Create following columns

Date 1 = [date]

Date Rank =  rankx(all(Table), [Date])

 

Sort date1 on date Rank and use it

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

 

refer my video on this

https://www.youtube.com/watch?v=KK1zu4MBb-c

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

No.  The row that has the dates in it are sorting numerically, so 2/1/20201 2/10/2020 2/11/2021 instead of 2/1/2021 2/2/2021 2/3/2021.  I need to sort that row to display in chronological order.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.