Hi,
Does anyone know of a way to write a script to perform separate cumulative calculations across rows based on different baselines? I'm trying to create a projected visit date report based off the max visit date for each subject.
The projected visit date column below shows the desired result based on the 'Max(VISITDT_RAW)' column + the cumulative sum from the 'Target Days from Previous Visit' column. The 'Cumulative Calculation" column shows the desired calculation for the Projected Visit Date column.
Any help I can get is much appreciated

Thanks!
Christine