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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

chronological month sorting when having different years

HI, I would like to know if there is some way to sort a visual dashboard by month when having months from different years, in order from latest to newest.

Thank you!

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Do you have a Date type column or Text column? 

 

For Date format, when you add date column to a chart visual, please set the X-axis type to categorical. Then, you can directly choose the "Sort by date" option via clicking the three dots on top right.

1.PNG

 

For Text format, you may need to add a numerical field for sorting. Please refer to below links:

sorting a date table chronologically

How do I sort by month number instead of alphabetically by month name in Power BI

 

Best regards,

Yuliana Gu

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

Hi Yuliana,

Thanks for your answer.

 

I tried with your method but i here my issue:

 

 I am sorting wether for months, but even when I do a Categorical type I do not see the months for its chronological order counting the different years but if all was within the same year although there are months from 2017 and 2018.

 2018-05-28_9-51-24...Example.png

 

 

 

 

May you know how to fix that?

 

Again, really appreciate your help.

 

Kind regards,

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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