Forum Discussion

lmatera's avatar
lmatera
Frequent Visitor
10 years ago
Solved

Sum hours

Hello!   I need to sum hours (like in the pic) but I haven´t been able to develop it...   Total: 49:00   Anyone? =)   Thanks!
  • Greg_Deckler's avatar
    10 years ago

    Some variation of this should work for you, this formula converts the text below into minutes and divides by 60 to get hours.

     

    This is a DAX custom column

    =(LEFT([EST Block time],FIND(":",[EST Block time])-1)*60+RIGHT([EST Block time],LEN([EST Block time])-FIND(":",[EST Block time]))*1)/60

     

    If you want it in the format below, you would have to have to do something like:

     

    DAX

     

    Custom Columns

    [Hours]=LEFT([EST Block time],FIND(":",[EST Block time])-1)*1

    [Minutes]=RIGHT([EST Block time],LEN([EST Block time])-FIND(":",[EST Block time]))*1)*1

     

    Custom Field

    Sum:=CONCATENATE(SUM([Hours])+ROUNDDOWN(SUM([Minutes])/60,0),":",MOD(SUM([Minutes]),60))