Forum Discussion

Hossam's avatar
Hossam
Regular Visitor
5 years ago
Solved

Subtract between two row in the same column via Custom Column

Hello    Id like to subtract these two values  to get the amount of minutes the order took from statues pending to statues in kitchen via a custom column    
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hossam 

    You can do it in dax with an easy calculate column then change the format to TIME.

     

    Column = IF([Status after]="in_kitchen",[Created at] - CALCULATE(MAX('Table'[Created at]),FILTER('Table',[ID]=EARLIER([ID])-1)))
     

     

    Paul Zheng _ Community Support Team
    If this post helps, please Accept it as the solution to help the other members find it more quickly.