Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Assistance required: Converting seconds measures

Hello All,   I needed some assistance. I have gone through the forums but cant seem to find an answer.   I have a measure called run time, which gives me numerical values like 78555,9875,etc.   ...
  • v-yulgu-msft's avatar
    v-yulgu-msft
    7 years ago

    Hi Anonymous,

     

    Rather than create a calculated column, you could new a measure instead still with above formula.

    Measure = VAR __secondsInDay = 86400
    VAR __secondsInHour = 3600
    VAR __days = INT('arms_reach vw_mold_tracking'[Enabled]/__secondsInDay)
    VAR __hours = INT(([Enabled]-(__days*__secondsInDay))/__secondsInHour)
    RETURN
    __days & " Days " & __hours & " Hours"

     

    Best regards,

    Yuliana Gu