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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Marjan685
New Member

Text to date datatype

IMG_8759.jpg

 

 here i have the date column coming like this. I need to convert it into proper date type. How can I achieve this

1 ACCEPTED SOLUTION
Omid_Motamedise
Super User
Super User

Your values are in type duration, you can use the function Duration.From() and then add it to your base date, so add a new column and if your based date is 2025/1/1/, use the forlowing formula.


#date(2025,1,1)+Duration.From([column name])

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h

View solution in original post

10 REPLIES 10
v-sgandrathi
Community Support
Community Support

Hi @Marjan685,

 

Has your issue been resolved?If the response provided by the community member addressed your query, could you please confirm? It helps us ensure that the solutions provided are effective and beneficial for everyone.

If yes, kindly accept the useful reply as a solution and give us Kudos. It would be appreciated.

Thank you for your understanding!

 

Thank you and continue using Microsoft Fabric Community Forum.

Hi @Marjan685,

 

Since we haven't heard back from you yet, I'd like to confirm if you've successfully resolved this issue or if you need further help?
If you've already resolved the issue, you can mark the helpful reply as a "solution" so others know that the question has been answered and help other people in the community. Thank you again for your cooperation!
If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.


Thank you,
Tejaswi.

Hi @Marjan685 ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and Accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you,
Tejaswi.

 

FreemanZ
Super User
Super User

hi @Marjan685 ,

 

I have some difficulties to relate your data with date, e.g. what is the corresponding date for "42:00.0" ?

Omid_Motamedise
Super User
Super User

Your values are in type duration, you can use the function Duration.From() and then add it to your base date, so add a new column and if your based date is 2025/1/1/, use the forlowing formula.


#date(2025,1,1)+Duration.From([column name])

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
Marjan685
New Member

If it is time, how it comes like 56:00.0

Don't think it can, but also not sure how it can be a date. What is the source system, what is the data type and format?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Currently it is a text type and basically the data is a damages data for the different shipments

Deku
Super User
Super User

That just looks like time. Is that what it looks in the source and have any transformations occured on the column?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

If its time, how it comes pike 56:00.0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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