Hi,
If you want to do this in the present table, you can add a formula column with the following formula, which compares each row's distance to -1 ( abs ( :compression - (-1))), which is (abs(:compression + 1)), to the minimum value found in the group.
Abs( :Compression + 1 ) == Col Minimum( Abs( :Compression + 1 ), :wafer_number, :RowCol, :input )
Thus, the rows in this column equaling 1 are the rows you want... you could select and subset them, etc.
If you want to directly subset without creating a new column, and don't mind using JSL, you could use this:
Names Default To Here(1);
dt = current data table();
dtSub = dt << subset(
selected columns(0),
rows(dt << get rows where(Abs( :Compression + 1 ) == Col Minimum( Abs( :Compression + 1 ), :wafer_number, :RowCol, :input )))
);
Cheers,
Brady