How Formula works in New Column Function
dt = Open( "$SAMPLE_DATA\Big Class.jmp" );
New Column("Sum",
"Numeric",
"Continuous",
Set Formula(If(Row() == 1, :Height, Lag(:Sum,1) + :Height))
);
The code above creates Sum column with calculated the accumulative sum. I am new to JSL so could someone explain me how the Formula command works. Is it scan one by one row in the column so that we can write :Height instead of constructing a For-loop ...