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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Fonlovedog207
Frequent Visitor

Cannot change data type text to date ,It error

I have raw data ,Format on Excel and Qlikview is date ,but the same format on Power BI  is text .when I chang data type text to date it error

 

Fonlovedog207_0-1673922940817.png

Fonlovedog207_1-1673922971809.png

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

One of ways to solve this is, in two steps, to change the data type to Date/Time data type, and then change it to Date data type.

 

Or, in one step, please try to write M code something like below.

 

Jihwan_Kim_0-1673927944489.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Fonlovedog207,

I'd like to suggest you change type with the 'use locale' option, it allow you to manually choose the source value locale to help power bi correctly recognized these value and transform data types:

Data types in Power Query - Power Query | Microsoft Learn

locale-sample-right-click

Regards,

Xiaoxin Sheng

Jihwan_Kim
Super User
Super User

Hi,

One of ways to solve this is, in two steps, to change the data type to Date/Time data type, and then change it to Date data type.

 

Or, in one step, please try to write M code something like below.

 

Jihwan_Kim_0-1673927944489.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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