Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PBI_newuser
Post Prodigy
Post Prodigy

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
Anonymous
Not applicable

5 REPLIES 5
PhilipTreacy
Super User
Super User

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!


Anonymous
Not applicable

@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

PBI_newuser
Post Prodigy
Post Prodigy

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

 

amitchandak
Super User
Super User

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

AlB
Super User
Super User

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.