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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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