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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
nyamz
New Member

Power Query

Hi, iam getting this error when i close and apply kindly help
DataFormat.Error: We couldn't parse the input provided as a Date value. Details: 13-01-2015

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi nyamz,
To fix the DataFormat.Error: We couldn't parse the input provided as a Date value.
Details: 13-01-2015 in Power BI Power Query,


follow these steps:

 

1. Check Date Format:
Ensure the date format in the dataset matches the expected format in Power Query. The date '13-01-2015' suggests a 'dd-MM-yyyy' format.

 

2. Change Data Type:
- Go to the column causing the issue.
- Right-click and select `Change Type` -> `Using Locale`.
- Choose Date and select the appropriate locale (e.g., `English (United Kingdom) for 'dd-MM-yyyy').

 

3. Transform Column:
If the dates are in text format, use a custom column to transform them into the correct date format:
= Date.FromText(Text.Replace([YourDateColumn], "-", "/"))

 

4. Other Possibilities:
- Mixed data types in the column (example, text and dates).
- Inconsistent date formats within the same column.
- Empty or null values in the date column.
- Incorrect regional settings in Power BI.

 

These steps should help resolve the parsing error.
Ensure no other non-date values exist in the column to avoid issues.

 

Regards,
Chiranjeevi Kudupudi

View solution in original post

3 REPLIES 3
v-cgao-msft
Community Support
Community Support

Hi @nyamz ,

 


Did @ChielFaber , @Anonymous 's answers help you? If so, consider marking the responses that helped you as solutions!

If the question is not resolved, could you consider posting some sample data and code or screenshots of the conversion steps?
You can find the corresponding step-by-step code in the advanced editor, please be sure to delete the private information before posting.

vcgaomsft_0-1721714662951.png
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
How to Get Your Question Answered Quickly - Microsoft Fabric Community

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum -- China Power BI User Group

Anonymous
Not applicable

Hi nyamz,
To fix the DataFormat.Error: We couldn't parse the input provided as a Date value.
Details: 13-01-2015 in Power BI Power Query,


follow these steps:

 

1. Check Date Format:
Ensure the date format in the dataset matches the expected format in Power Query. The date '13-01-2015' suggests a 'dd-MM-yyyy' format.

 

2. Change Data Type:
- Go to the column causing the issue.
- Right-click and select `Change Type` -> `Using Locale`.
- Choose Date and select the appropriate locale (e.g., `English (United Kingdom) for 'dd-MM-yyyy').

 

3. Transform Column:
If the dates are in text format, use a custom column to transform them into the correct date format:
= Date.FromText(Text.Replace([YourDateColumn], "-", "/"))

 

4. Other Possibilities:
- Mixed data types in the column (example, text and dates).
- Inconsistent date formats within the same column.
- Empty or null values in the date column.
- Incorrect regional settings in Power BI.

 

These steps should help resolve the parsing error.
Ensure no other non-date values exist in the column to avoid issues.

 

Regards,
Chiranjeevi Kudupudi

ChielFaber
Super User
Super User

Could you provide sample data? This error would occur when converting values into a date type. Look into the use of a locale:

https://learn.microsoft.com/en-us/powerquery-m/date-from
https://www.vivran.in/post/power-query-date-transformation-using-locale-text-to-date

Depending on your location settings a date value can be converted differently. You can solve this with the use of a locale.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.