Forum Discussion

ganapathya's avatar
ganapathya
Frequent Visitor
9 years ago
Solved

Difference hours between two columns one is first row and next is in another row

Start Date End date downtime 08-06-201408:55:35 08-06-201409:55:35   08-06-201413:55:35 08-06-201413:55:35 4   I want to calculate downtime in hrs based on the end date of first r...
  • Anonymous's avatar
    Anonymous
    9 years ago

    Hi ganapathya,

     

    You can try to use below formula:

     

    down time = 
    DATEDIFF(MAXX(FILTER(ALL(Sheet2),[ID]=EARLIER(Sheet2[ID])&&[End date]<EARLIER(Sheet2[Start Date])),[End date]),[Start Date],HOUR)+0

     

     

     

    Regards,

    Xiaoxin Sheng