cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Lynk_RM
Helper I
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
Greg_Deckler
Super User
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?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Fowmy
Super User
Super User

@Lynk_RM 

 

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

Fowmy_0-1599378419775.png

 

________________________

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 🙂

YouTube  LinkedIn

 



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


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Greg_Deckler
Super User
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?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.