could not convert to column Date to data type Date

krrishkrsna

Board Regular
Joined
Jan 31, 2009
Messages
84
hi

downloaded data EMT1386-ImportTestData-2018.txt and imported through Power Query, but when i tried to convert column Date to data type Date, getting for many values as DataFormat.Error: We couldn't parse the input provided as a Date value

(imported steps: PowerQuery > text/csv > file origin as 1252: Western European (Windows) > delimiter as Tab)

plz solve the issue
 
Last edited:

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
How are the dates formatted in the file?
 
Upvote 0
after importing it is formatted in data type to Text. when i convert data type to Date, many values returns Error

used same data many time before Power Query updation, that time no issues :(

currently using April 2017 PQ and POWERBI updated version
 
Last edited:
Upvote 0
My best guess is that you should change data type using locale "en-US".

In the code of the finished file, query Text2018DataImport:

= Table.TransformColumnTypes(#"Promoted Headers",{{"TransactionID", Int64.Type}, {"Date", type date}, {"Website", type text}, {"Product", type text}, {"Quantity", Int64.Type}, {"RevenueDiscount", type number}, {"NetStandardCost", type number}, {"CountryCode", type text}}, "en-US")
 
Upvote 0
MarcelBeug is the Man with Good Solution. thank you sir.:)

earlier version of PwrQry was working fine but latest version giving errors. so not sure when issue will be cleared from microsoft
 
Upvote 0

Forum statistics

Threads
1,225,738
Messages
6,186,728
Members
453,368
Latest member
positivemind

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top