Forum Discussion

thampton's avatar
thampton
Icon for Helper III rankHelper III
7 years ago
Solved

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 ...
  • v-lili6-msft's avatar
    v-lili6-msft
    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