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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
domi25
Frequent Visitor

Months are nor sorting properly in custom calendar

Hi, I created custom calendar with different months in quarters and the months are not sorted properly. I tried to add month nr column and sort by 1) year 2) quarter 3) month number. Data is properly sorted in model view but when I try to display months in visual over time months are not sorted properly. I tried to fix it adding a month nr to hierarchy and it works good but I don't want to see month number in my visual and when I remove month number from hierarchy the months are not displayed correctly. It is possible to do this in other way to have months sorted correcly without month number displayed? 

 

domi25_0-1705918858918.png

 

1 ACCEPTED SOLUTION

You are not sorting the table. You are sorting the column. Click on the Month name column and then select "sort by column" and select Month Nr. 

Proper explanation is here: https://www.linkedin.com/pulse/sorting-months-chronologically-powerbidesktop-ace-mary-bajisma/

If your month name is sorted by the month number as I explained and your visual is sorted by the month name, then there should be no problem. 

zenisekd_0-1705927239473.png

 




View solution in original post

4 REPLIES 4
zenisekd
Super User
Super User

@domi25 
This happens due to the fact, that text gets sorted by default alphabetically. Therefore you need to add a month num and quarter num to the table (as you have) and then sort the month name by this new number column. Problem solved. 

zenisekd_0-1705924219046.png

Kudos and mark as solution very appreciated! 🙂

This proposal does not solve my problem, or I don't understand what else I need to do. As I mentioned in the post, the data is already sorted correctly by the 'month number' column. The issue arises when I want to display a timeline on the chart without the 'month number' column in the visualization. My table looks like this: table.png

You are not sorting the table. You are sorting the column. Click on the Month name column and then select "sort by column" and select Month Nr. 

Proper explanation is here: https://www.linkedin.com/pulse/sorting-months-chronologically-powerbidesktop-ace-mary-bajisma/

If your month name is sorted by the month number as I explained and your visual is sorted by the month name, then there should be no problem. 

zenisekd_0-1705927239473.png

 




Now I understand! It works properly. Thank you very much for your help! 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors