cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Partisan
Post Partisan

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?

 

PBI_newuser_0-1604500720825.png

 

 

1 ACCEPTED SOLUTION
Super User II
Super User II

@PBI_newuser - 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


Nikhil
Hit the Thumbs-up button if you find this informative!!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!

View solution in original post

5 REPLIES 5
Super User III
Super User III

Hi @PBI_newuser 

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 

change-using-locale.png

 

then choose Date and English (United States)

change-using-locale2.png

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.



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Super User II
Super User II

@PBI_newuser - 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


Nikhil
Hit the Thumbs-up button if you find this informative!!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!

View solution in original post

Post Partisan
Post Partisan

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.

PBI_newuser_0-1604502685918.png

 

Super User IV
Super User IV

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Super User III
Super User III

Hi @PBI_newuser 

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 

SU18_powerbi_badge

Helpful resources

Announcements
secondImage

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

secondImage

Power BI Women

Join our monthly meetings and learning sessions.

secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors