Forum Discussion
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?
- Anonymous5 years ago
Anonymous - you had similar issue previously and I think this was resolved here- https://community.powerbi.com/t5/Desktop/Inconsistent-Date-Format-in-excel-file/m-p/1447247#M607073
5 Replies
- PhilipTreacySuper User
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. - AlBCommunity 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
- amitchandakSuper User
Anonymous , do you date in two formats? or you have the UK setting in the system and the date are coming is US format ?
- AnonymousNot applicable
Hi amitchandak AlB ,
This is the sample data: https://we.tl/t-HgwZE11QGP
You can see the highlighted date is November dates, but after importing to Power BI, it became 11th of the month.
- AnonymousNot applicable
Anonymous - you had similar issue previously and I think this was resolved here- https://community.powerbi.com/t5/Desktop/Inconsistent-Date-Format-in-excel-file/m-p/1447247#M607073