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 August 31st. Request your voucher.

Reply
VPlorim
Helper I
Helper I

Sort order for 2019-2020

I have a visual that starts October 2019 and I need to continue to show data into 2020.

The issue that I am having is the sort order on the visual.  

It is showing Jan oct nov Dec and I need it to appear as Oct Nov Dec Jan

Any suggestions?

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @VPlorim ,

I'd like to suggest you take a look at the following link to know how to create a custom sort table to achieve custom sort order:
Custom Sorting in Power BI 

Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @VPlorim ,

I'd like to suggest you take a look at the following link to know how to create a custom sort table to achieve custom sort order:
Custom Sorting in Power BI 

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

If you are showing Month-year . Then please make sure you have sort column YYYYMM and it has been marked as sort column.

 

format(date,"YYYYMM")

Sort_by_column.png

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-wi...
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601

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

I created the column and tried to sort by that column and I have the following message:

This column cant be sorted by a column that is already sorted, directly or indirectly, by this column.

What can I do in this case?

This happen when you create sort column from the column you try to apply sort

Let us Say I have Date column

Month-Year = format(Date,"MMM-YYYY")

Month -Year Sort = format(Date, "YYYYMM")

 

Month year can sorth on month year sort but date can not.

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

I am sorry but I just do not understand how I need to rectify this message to get this to appear how I need.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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