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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to turn a column into a date type if it has 2 different date patterns?

Hello everyone,

I have a column that has dates of different types.
Example: 01/15/2020 and 1/15/20


When I try to pass this column to the date type, PowerBi shows rows with an error, because it is unable to convert all the rows in this column to date, due to the difference in the pattern in the dates. How can I work around this problem?

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Is your issue solved now?

 

Best Regards,
Kelly

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

Ashish_Mathur
Super User
Super User

Hi,

I don't think it is because of date of different format.  I think it is because of the entries which look like dates are not dates at all.  If your systems settings are set to dd/mm/yyyy format, then 1/15/2020 will not be recognised as a date at all.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @Anonymous : To me this looks like data cleansing/Formatting issue. You might first need to clean and analyse your data

Easy way to do is in Power Query Mode > Select Table > View > Enable Column Distribution, Enable Column Profile and Enable Column Quality

Then you will need to fix any errors with the data. M code will be generated in the backend

 

Unfortunately there is no other way of automating data cleansing, Not atleast i am aware of.

 

Hope this helps.

 

Cheers,

-Namish B

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors