Hi,
You could use the following formula (copy and paste in the Formula Editor)
If( Row() == 1,
1,
If( :EndTime Id != Lag( :EndTime Id, 1 ),
Lag( :RUN NUMBER, 1 ) + 1,
Lag( RUN NUMBER, 1 )
)
);
This will only work properly if the table is sorted by EndTime Id
Thierry R. Sornasse