cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cburns10 Frequent Visitor
Frequent Visitor

Text to date in query editor

I recently loaded a new data set into Power BI, and the date column is in the text format "11/10/2015 20:09:44". In query editor, I can change the format to date/time, but I need the column to be in Date format. When I tell it to move to Date format, the entire column simply shows "Error" and says "DataFormat.Error: We couldn't parse the input provided as a Date value."

 

Does anyone know why this is?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Vvelarde Super Contributor
Super Contributor

Re: Text to date in query editor

hi @cburns10

 

With your Datetime Column, select AddColumn Date -- Date Only  or Transform - Date - Date Only

 

DAteOnly.png




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




View solution in original post

MarcelBeug Super Contributor
Super Contributor

Re: Text to date in query editor

Yes, because it's date/time and not just date. Smiley Very Happy

 

as @Vvelarde already suggested:

You can first apply date/time format and then - on the Transform tab at the right hand side - choose "Date" - "Date Only", which will convert your date/times to dates.

Specializing in Power Query Formula Language (M)

View solution in original post

3 REPLIES 3
Vvelarde Super Contributor
Super Contributor

Re: Text to date in query editor

hi @cburns10

 

With your Datetime Column, select AddColumn Date -- Date Only  or Transform - Date - Date Only

 

DAteOnly.png




Lima - Peru
Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!




View solution in original post

MarcelBeug Super Contributor
Super Contributor

Re: Text to date in query editor

Yes, because it's date/time and not just date. Smiley Very Happy

 

as @Vvelarde already suggested:

You can first apply date/time format and then - on the Transform tab at the right hand side - choose "Date" - "Date Only", which will convert your date/times to dates.

Specializing in Power Query Formula Language (M)

View solution in original post

cburns10 Frequent Visitor
Frequent Visitor

Re: Text to date in query editor

@MarcelBeug @Vvelarde That worked! Thanks guys

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors (Last 30 Days)