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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Users online (6,260)