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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Hgsilva
Regular Visitor

Turning whole number into time passed

I have a whole number column that represents minutes taken to complete a step. When I try to convert this number into a time format (e.g., 90 minutes = 1 hour 30 minutes) I get the following error. Am I doing it wrong or do I have too much data in this and will need to find a different way to do it?

Hgsilva_2-1734711344150.png

 

Hgsilva_1-1734711326598.png

 

 

1 ACCEPTED SOLUTION
4 REPLIES 4
lbendlin
Super User
Super User

Divide your number by 1440 and then use regular date/time formatting.

Ritaf1983
Super User
Super User

Hi @Hgsilva 
Please use the DAX formula :

Time_format =
Var hours = QUOTIENT('time table'[Time],60)
Var minutes = MOD('time table'[Time],60)
RETURN
TIME(hours,minutes,0)

and time format
Ritaf1983_1-1734712144697.png

 


The pbix is attached

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Hi @Ritaf1983 ,

 

Unfortunately I receive the same error with this formula. 

 

Hgsilva_0-1734714630098.png

 

lbendlin_0-1734715035428.png

 

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 MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.