cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
thampton Member
Member

Dates not sorting correctly on line graph

I have a date field that i am using as my axis for a line chart. I have dates that are from 2018 and 2019(Jan & Feb are included in this). Whenever i use this field it sorts them out of order.

 

I have tried creating an index column and changing the sort by column on my date field to the index but there was an error saying there cant be more than one value in [Column Name] for the same value in [Index]. 

 

How do i correct?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Dates not sorting correctly on line graph

hi, @thampton

If i use the 3 dots, it is still out of order as it is sorting alphabetically. I need it to sort in chronological order.

The data type of the field should be text instead of date.

8.JPG

Please check select that field then Modeling->Formatting if it is a date field.

and you could also use Sort by column in Power BI Desktop.

If not your case, please share the sample pbix file. You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

 

 

Best 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.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Re: Dates not sorting correctly on line graph

hello @thampton

 

Do you mean a slicer or table ? not sure what you mean by date field.

 

if yes, click on the three dots "..." and select the order you want it to present.

thampton Member
Member

Re: Dates not sorting correctly on line graph

@Anonymous It is a date field that i am using as the x axis on a ling chart. 

 

If i use the 3 dots, it is still out of order as it is sorting alphabetically. I need it to sort in chronological order.

Anonymous
Not applicable

Re: Dates not sorting correctly on line graph

@thampton

Ok, could you show a picture(s) as it makes it much easier to understand.. 

Community Support Team
Community Support Team

Re: Dates not sorting correctly on line graph

hi, @thampton

If i use the 3 dots, it is still out of order as it is sorting alphabetically. I need it to sort in chronological order.

The data type of the field should be text instead of date.

8.JPG

Please check select that field then Modeling->Formatting if it is a date field.

and you could also use Sort by column in Power BI Desktop.

If not your case, please share the sample pbix file. You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.

 

 

 

Best 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.

View solution in original post

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors (Last 30 Days)