Forum Discussion

mariner84's avatar
mariner84
Advocate I
6 years ago
Solved

Time and Duration Help

Hello, I have a data set where I have duration in seconds, which I'm looking to convert to a format to show days, hours, minutes and seconds. Once converted, I'm then hoping it's possible to put the...
  • Anonymous's avatar
    Anonymous
    6 years ago

    mariner84 

     

    What if you generate these columns:

     

    DAYS = TRUNC([Business Duration]/86400)

    HRS = TRUNC(MOD([Business duration]/86400,1)*24)
    MIN = TRUNC(MOD(MOD([Business duration]/86400,1)*24,1)*60)
    SEC = TRUNC(MOD(MOD(MOD([Business duration]/86400,1)*24,1)*60,1)*60)
    FORMATTED = 'Page 1'[DAYS]&":"&'Page 1'[HRS]&":"&'Page 1'[MIN]&":"&'Page 1'[SEC]
     
    Does that help?