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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Wilm117
Helper I
Helper I

From decimal number to type time

Hello,

 

I'm struggling with this seeminly simple issue, but i cannot get it fixed. I am analyzing the amount of hours that a bus drives. From my export i get my data in decimal numbers, but i want to transform this to minutes using the type "time". However, when I give this command I get errors.

Wilm117_0-1640273571634.png

Wilm117_1-1640273812958.png

 

in another table i did this too, but the decimal numbers were way lower (e.g. 0,0479) and here could change to type Time without any problems. Does anybody know why this happens and how i can solve this? I already tried some formulas from other posts in the community, but i can't figure it out..

 

Wilm117_2-1640274071540.png

Wilm117_3-1640274092149.png

 

Thanks!

 

2 REPLIES 2
parry2k
Super User
Super User

@Wilm117 in the first image, first you have converted the column to decimal type and then you are converting it to time, the step on which this column is converted to decimal, change that to time and it should work.

 

Follow us on LinkedIn

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

negi007
Community Champion
Community Champion

@Wilm117  can you share your sample data in text format which can be copied here. seems like some non-numeric or data conversion issue.




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors