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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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