Forum Discussion

Pr0ton's avatar
Pr0ton
Frequent Visitor
2 years ago
Solved

Production Time Analysis - Calculate Interval between sequenced Transactions.

I would like to calculate the interval between Transactions. See the example table below. I'm looking for some trends on 'intervals' or 'waiting times' , and would like to look at a years wort...
  • amitchandak's avatar
    2 years ago

    Pr0ton ,

    Create the following column

    Rank = Rankx(filter(Table, Table[UID] = earlier([UID]) ), [Start Time])

     

    diff = if([Rank] <>1, datediff(Maxx(filter(Table, Table[UID] = earlier([UID]) && Table[Rank] = earlier([Rank]) -1), [Start Time]) , [Start Time], second) )