Hi JMP community folks,
I have a data table with four columns as Side, TIME, Count, and ID.
I am trying to add a new column that groups a batch of IDs based on the Count column.
The data has already been sorted by Time and Count.
The desired output I am trying to achieve is in the "Cycle (desired output)" column.
The formula which I tried to use was lag. But I am not able to achieve the desired output.
If( :Count < Lag( :Count, -1 ),
i,
i + 1
);
Would anyone have any solutions to this?
Thank you in advance.