cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wesleyhucker Visitor
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

Accepted Solutions
Highlighted
trisabiswas Regular Visitor
Regular Visitor

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

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.

2 REPLIES 2
Highlighted
trisabiswas Regular Visitor
Regular Visitor

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

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.

sureshsonti Regular Visitor
Regular Visitor

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

Cost by MonthName & Day.JPG

 

I highlighted the arrows that you should click

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 43 members 1,246 guests
Please welcome our newest community members: