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
cburns10
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
Vvelarde
Community Champion
Community Champion

hi @cburns10

 

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

 

DAteOnly.png




Lima - Peru

View solution in original post

MarcelBeug
Community Champion
Community Champion

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
cburns10
Frequent Visitor

@MarcelBeug @Vvelarde That worked! Thanks guys

MarcelBeug
Community Champion
Community Champion

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)
Vvelarde
Community Champion
Community Champion

hi @cburns10

 

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

 

DAteOnly.png




Lima - Peru

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.

Top Solution Authors