Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Converting secs to hr

Please help. I am self teaching PowerBI and working on creating a report where I need to follow below formulas on PowerBI.    Is there an easier way to do this on PowerBI? I have managed to change ...
  • v-alq-msft's avatar
    v-alq-msft
    5 years ago

    Hi, Anonymous 

     

    I think you missed adding the second of 'hh:mm:ss' in your measure. You may create a calculated colum and modify measures as below. The pbix file is attached in the end.

    Calculated column:

    Second = SECOND([Time])

    Measure:

    Total Hours = 
    DIVIDE(
        SUM('Table'[Hour])*3600+SUM('Table'[Minute])*60+SUM('Table'[Second]),
        3600,
        0
    )
    Result = 
    DIVIDE(
        SUM('Table'[Count of visitor emaiil]),
        [Total Hours],
        0
    )

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.