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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

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

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors