Forum Discussion

jhern90's avatar
jhern90
Frequent Visitor
6 years ago
Solved

Problem with months not in order on line chart

I have a line chart with data showing number of X vs date. However, I have a problem where two of the months are flipped (see image). I have looked into this community and found similar threads. The ...
  • edhans's avatar
    edhans
    6 years ago

    Ok. without something to work with it is difficult to assist. But let me try one more thing.

     

    Download this PBIX file. It has some random data I put together for 2020. Notice how the chart is not sorted by month properly. I'm not sure how it is sorted. It isn't alphapbetical or by date. Do the following:

    1. Click on the Month Name field in the Date table.
    2. Click on the Column Tools menu (this is the new ribbon)
    3. Click Sort By Column
    4. Pick "Month" which is an integer from 1-12 that perfectly corresponds to Jan-Dec.
    5. In your chart, click the elipses and ensure it is being sorted by Month Name, not Sales.

    Ensuring the chart is sorting correctly.

    It should now be sorted by the Month Name, which in turn is sorted by the numerical month number.

     

    See if walking through that process helps. I don't know what else to do if I cannot have access to your PBIX file to more closely examine the issue.