You would do all those "reset" adjustments to the Col Min() function. If you want to reset it on Run
(:Date - Col Min(:Date, :Run)) / In Days(1)
Batch + Run
(:Date - Col Min(:Date, :Run, :Batch)) / In Days(1)
On smallest data
(:Date - Col Min(:Date)) / In Days(1)
and so on (Col Min(name, <By var, ...>) )
-Jarmo