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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Hgsilva
Frequent 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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