Hi @ramzez ,
I'm not sure why you're filtering by break to get a sequence subset instead of just working through the whole table.... I'm also not sure if you're wanting to see the deltas somewhere or just sum them into a label.
For now, let's assume we want to check the delta for every row and its preceding row, then you can fiddle with the calc to suit your needs.
First of all, your calculations look right, but you're not putting the DateDiff outputs anywhere that you can sum them, and you're summing the sequence value instead.
Ignoring the filter for now, if I try to take your original meaning and apply what I suspect the outcome should be, then a text label Text: property would look something like this to sum all the time deltas;
Sum( AddColumns(
Sequence(CountRows(colTimes)), //as many rows as are in table
"Delta",
DateDiff(
// start time
Index(
Sort(colTimes,time,Descending),
Value+1).time, //preceding row time
// end time
Index(
Sort(colTimes,time,Descending),
Value).time, //current row time
Minutes
)
), Delta)
Hope this helps,
RT