Forum Discussion

syazaaoa95's avatar
syazaaoa95
Brass Contributor
Mar 06, 2023
Solved

I have problems with the dates in Pivot Table

This is my data. I wanted my date to be ascending orders which it follows by month, days and years. but now, it only follows the days only.  How should I do here? Thank you.  Saza
  • Riny_van_Eekelen's avatar
    Mar 06, 2023

    syazaaoa95 Your 'dates' are in fact texts that look like dates and the pivot table merely sorts them in alphabetical order (0 - 9, a -z ). You need to transform them into real dates.

     

    There are several way to fix that, depending on where the data comes from. If import from e.g. a CSV or TXT file, use Power Query the legacy import From Text to import the data and set the date format correct from the beginning. If the 'dates' are in an Excel sheet from the start use text-to-columns (on the Data ribbon) or the DATEVALUE function. The latter will transform the date text into a number which you can then format as a Date.

     

    So, please tell a little bit more on the background of these 'dates' or experiment on your own with any of the above-mentioned options.

Resources