Forum Discussion
Production Time Analysis - Calculate Interval between sequenced Transactions.
- 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) )
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) )
- Pr0ton2 years agoFrequent Visitor
Thanks All,
I think this is now resolved. 😀
Thanks to amitchandak
1. Removed :- Schoolboy error in the data query which had unwanted 'almost duplicate' lines which prevented the Rank from counting correctly.
2. Tweaked the Datediff so that it uses [Completed Time] as Date1 , and Ranked-1 Earlier [Start Time] as Date 2 (which is actually the subsequent transaction as the ranking increments as it gets younger)
@gmsamborn Unfortunatley the Measure was too resource hungry for this dataset, but yes, on the sample you generated, works . Much appreciated for your time.
Many thanks again.