Forum Discussion

manoj_0911's avatar
manoj_0911
Icon for Post Prodigy rankPost Prodigy
2 years ago
Solved

Need Help - Converting Seconds to HH:MM:SS and Calculating Average Duration

Need Help - Converting Seconds to HH:MM:SS and Calculating Average Duration Hi everyone, I'm seeking assistance with two calculations in Power BI: 1. Converting Seconds to HH:MM:SS Format: I'm wo...
  • Joe_Barry's avatar
    2 years ago

    Hi manoj_0911 

     

     

    I can partly help

    Create custom columns.

     

    Hours = INT([Seconds] / 3600)
    Minutes = INT(MOD([Seconds], 3600) / 60)
    Seconds = MOD([Seconds], 60)
     
    Then create another
    DurationFormatted =
    FORMAT([Hours], "00") & ":" &
    FORMAT([Minutes], "00") & ":" &
    FORMAT([Seconds], "00")
     

     

    Hope this helps

    Joe

     

    If you found my answer helpful and it solved your issue, please accept as solution