You can calculate difference between rows using Dif() or Lag().
Names Default To Here(1);
dt = New Table("Untitled 2",
Add Rows(3),
Compress File When Saved(1),
New Column("P", Numeric, "Continuous", Format("Best", 12), Set Values([1, 1, 2])),
New Column("Q", Numeric, "Continuous", Format("Best", 12), Set Values([3, 3, 6]))
);
dt << New Column("", Numeric, Continuous, Formula(
difval1 = Dif(:P);
difval2 = Dif(:Q);
If(difval1 & difval2,
difval2 / difval1;
,
.
);
));
You can explore subexpression values from formula editor if needed
-Jarmo