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
Anonymous
Not applicable

Assign month numbers sequential for next year data!

Hi All,

 

Please i unable to sort the month and year data based on the month number through sorting.

Iam using the 2019 and 2020 data while assinging the month numbers for both the year January it is coming month number as 1.

Do we have any method to follow that if i assign should get 2020 january month as 13, February 2020 as 14 so on !!

 

Thanks for your help

 

 

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

You want Sequential, https://community.powerbi.com/t5/Quick-Measures-Gallery/Sequential/m-p/380231?search-action-id=10196...



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...
tkirilov
Resolver I
Resolver I

Hi @Anonymous ,

Am I assuming correctly that you are trying to display more than 12 months on the same axis? If that's the case, I normally create a new text column with dates in YYYY/MM format and sorting those in alphabetical order. Hope that helps. 

Best,

Tom

Anonymous
Not applicable

no i presenting 14 months data and it is not working that approach. January 2019  as coming as 1 and also January 2020 also coming as 1, which is resulting the presentation of data not coming in sequential order

 

 

hi  @Anonymous 

Just drag [Year] and [Month] in the visual together, as below, then sort by Year Month asc

4.JPG

 

and you could also use Sort By column in the power bi desktop.

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

https://radacad.com/sort-by-column-in-power-bi

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.