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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Calendar

hello everyone i'm actually working on power bi and i'm having this issu.

i have this kind of timestamp date :

20170701

20180708

20190609

 

please how can i convert it to a date time format ? 

thank you 

1 ACCEPTED SOLUTION

Hi @Anonymous 

Try Triming it first.


image.png

Regards,
Mariusz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Mariusz
Community Champion
Community Champion

Hi @Anonymous 

In Query Editor you can change the Data Type of the column like below, as long as your current format is YYYYMMDD
image.png
Regards,
Mariusz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

here is the error that i'm getting 

 

DataFormat.Error: We couldn't convert to Date.
Details:
20180522

Hi @Anonymous 

Try Triming it first.


image.png

Regards,
Mariusz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

it works ! thank you a lot for your help
Anonymous
Not applicable

HI @Mariusz  i did it, but all that i have is a column sur "Error" so i was wondering if there is a formula to get ta column in date time format

ps: i'm a begginer in power Bi Smiley Very Happy

 

thank u for ur answer tho

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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