Forum Discussion
Dates not sorting correctly on line graph
- 7 years ago
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.
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
When I added in a Legend that is what caused my date sorting to go haywire. When I removed legend, the sorting works correctly.
Could this be what is causing you the issue?
without legendwith legend
- EricaEureka2 years agoNew Member
Have encountered the exact same problem. After couple days of investigation it seems that it's out of order because some elements in the legend dont have data, e.g. a measure that has 0 divided by 0 error. To fix this, make sure the measure is correctly reflected (can put a table to help pinpoint the date, legend element & measure to see).