Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Wrong date import from excel file

Hi,

 

The date import from excel is incorrect.

For example, the dates highlighted in yellow has reverse date and month.

Those date from 1 to 12 will become the month instead of the date.

 

Eg: 12/10/2020 shown below is actually 10/12/2020 (12th October 2020).


How to correct this date?

 

 

 

5 Replies

  • Hi Anonymous 

    The source file you provided has dates in dd/mm/yyyy format.  I don't know what you are doing once you get the dates into PBI but if you just select the columns and then right click the column header then Change type -> Using Locale 

     

    then choose Date and English (United States)

    They should convert properly to your locale.

    Phil


    If I answered your question please mark my post as the solution.
    If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.

  • AlB's avatar
    AlB
    Community Champion

    Hi Anonymous 

    A) Is what you show in the pic how the data is shown in Excel (looks like it, since it's text)

    B) In what format are the dates you are importing from the Excel? It seems Month/Day/Year (you have 10/19/2020 for instance)

    C) In what format do you want the output dates?

    All this probably has to do with the regional settings in your pbix (File->Options and Settings->Options->Current File->Regional Settings)  and/or you machine locale

     

    Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

    Contact me privately for support with any larger-scale BI needs, tutoring, etc.

    Cheers 

  • Anonymous , do you date in two formats? or you have the UK setting in the system and the date are coming is US format ?