cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I

## Seconds to HHH:MM:SS (not HH:MM:SS)

How can I convert a column with seconds to HHH:MM:SS? (Please take note I am not requesting HH:MM:SS)

1 ACCEPTED SOLUTION
Super User

@Lynk_RM So, unless I am mistaken, this should be Chelsie Eiden's Duration as here:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389

The only change would be to use a custom format string of 000:00:00.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings

Right?

Become an expert!: Enterprise DNA
External Tools: MSHGQM
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
2 REPLIES 2
Super User

Could this work for you?

``````Modified Time =
var vSeconds=[Seconds] //Replace your column name
var vMinutes=int( vSeconds/60)
var vRemainingSeconds=MOD(vSeconds, 60)
var vHours=INT(vMinutes/60)
var vRemainingMinutes=MOD(vMinutes,60)
return

vHours &":" & vRemainingMinutes &":"& vRemainingSeconds``````

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

Did I answer your question? Mark my post as a solution! and hit thumbs up
Super User

@Lynk_RM So, unless I am mistaken, this should be Chelsie Eiden's Duration as here:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389

The only change would be to use a custom format string of 000:00:00.

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings

Right?

Become an expert!: Enterprise DNA
External Tools: MSHGQM
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

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

#### Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors