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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
santoshlearner2
Resolver I
Resolver I

Date is in matrix want to sort descending order

Dear All,

 

I have a table in which there are calculated columns which does Plus minus of daily stock, the issue is when i put the dates in the matrix it sorts by ascending order, i tried creating duplicate calendar table then linking it with the main date table,  even tried rank, index but it does not work, can somone assist. I want to sort in descending order

 

Warm Regards

 

 

1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

Hi! You can have Power BI sort one column by another. For example, If you have a date table and you have fields for Year, Month, Month Number, Day, etc. and you put Month into a visual, it will sort it alphabetically (no one needs that). To correct this, you would select the Month field in the data pane and choose to have it sorted by the Month Number column - this will put it in order we need. You can do similar if you have days of the week as the name - it would need to be sorted by the number column. Here is a link that shows how to do it. Sort one column by another column in Power BI - Power BI | Microsoft Learn





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
audreygerred
Super User
Super User

Hi! You can have Power BI sort one column by another. For example, If you have a date table and you have fields for Year, Month, Month Number, Day, etc. and you put Month into a visual, it will sort it alphabetically (no one needs that). To correct this, you would select the Month field in the data pane and choose to have it sorted by the Month Number column - this will put it in order we need. You can do similar if you have days of the week as the name - it would need to be sorted by the number column. Here is a link that shows how to do it. Sort one column by another column in Power BI - Power BI | Microsoft Learn





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Solution Authors