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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Date format

Hi guys,

I´m working with report and I have a problem with the data in a column that refers to a date.

Here is a sample of the data:

Sample Data.PNG

When trying to convert to a date, this the error:

 

Sample Data Error.PNG

 

I have tried different changes in the format with no results.

Thanks,

1 ACCEPTED SOLUTION
ppm1
Solution Sage
Solution Sage

Are you in a locale that uses yyyyddMM format? You can convert it to Text type and use Date.FromText with the Format option like this.

 

Date.FromText([Date], [Format = "yyyyddMM"])

 

Pat

Microsoft Employee

View solution in original post

2 REPLIES 2
ppm1
Solution Sage
Solution Sage

Are you in a locale that uses yyyyddMM format? You can convert it to Text type and use Date.FromText with the Format option like this.

 

Date.FromText([Date], [Format = "yyyyddMM"])

 

Pat

Microsoft Employee
Anonymous
Not applicable

Yes , it works.

 

Thanks,

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors