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
wesleyhucker
Regular Visitor

How to Sort Days and Month in Chronological Order - Power Bi

Hi Guys,

 

I'm fairly new to Power BI and I'm tryng to create a small dashboard for a client. the problem is when using my data on a line graph, if selected 1 month, the dates are in chronological order, however, if I do beggining of the year to date the months show un sorted. see picture below.

 

dates.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Create a new column using this DAX formula :

 

YearMonthInt = <tablename>[Date].[Year]*100 +  <tablename>[Date].[MonthNo] 

 

Then, select the Date column > In the Modelling tab, select 'Sort By Column' option and sort the Date column by the new Column u created.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Create a new column using this DAX formula :

 

YearMonthInt = <tablename>[Date].[Year]*100 +  <tablename>[Date].[MonthNo] 

 

Then, select the Date column > In the Modelling tab, select 'Sort By Column' option and sort the Date column by the new Column u created.

Cost by MonthName & Day.JPG

 

I highlighted the arrows that you should click

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.

Top Solution Authors