Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
How can I convert a column with seconds to HHH:MM:SS? (Please take note I am not requesting HH:MM:SS)
Solved! Go to Solution.
@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?
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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@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?
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
User | Count |
---|---|
16 | |
14 | |
8 | |
8 | |
7 |