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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PatriceGREN
Regular Visitor

Times / convert minutes beyong 24h

Hi, 

I have a table with minutes. I would like to convert those minutes into hours, minutes. As Excel does, I would like to go beyond 24h, without converting to day. Can you help me? Thank you

Patrice

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PatriceGREN ,

Could you try adding a new column with this formula ? (I assumed your column name is 'Minutes')

Format = 
var hourNo=INT([Minutes]/60)
var minuteNo=MOD([Minutes],60)
var secondNo=INT(([Minutes]-INT([Minutes]))*60)
return
FORMAT(hourNo,"#00")&":"&FORMAT(minuteNo,"#00")&":"&FORMAT(secondNo,"#00")

I found this solution there : https://community.powerbi.com/t5/Desktop/convert-minutes-into-hours-minutes-and-seconds-Not-Days/td-...

 

Regards, 

Etienne

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @PatriceGREN ,

Could you try adding a new column with this formula ? (I assumed your column name is 'Minutes')

Format = 
var hourNo=INT([Minutes]/60)
var minuteNo=MOD([Minutes],60)
var secondNo=INT(([Minutes]-INT([Minutes]))*60)
return
FORMAT(hourNo,"#00")&":"&FORMAT(minuteNo,"#00")&":"&FORMAT(secondNo,"#00")

I found this solution there : https://community.powerbi.com/t5/Desktop/convert-minutes-into-hours-minutes-and-seconds-Not-Days/td-...

 

Regards, 

Etienne

Hi @Anonymous , 

Thank you,
I’m sorry I asked a question that was already resolved, I saw this solution and I didn’t understand its usefulness. 

Patrice

 

 

Anonymous
Not applicable

There is no problem, it was a pleasure to help. Have a nice day ! 

Etienne

and it’s text, so I can’t add the values, as I could do on Excel, I must find another solution

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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