Thanks for replying Jeff.
Pasting the last line of your script into mine did not resolve the problem. However I was able to come with a solution by changing the name of the column to "Radial 1" and adding a line with Eval Formula at the end. Not sure why this works. The data table is about 1,300 rows with 15 columns, each number has a width of 10 to 12.
The following two scripts work. Am pasting them in their entirety. The other lines evaluate pit depth and distribution.
Any idea why the modifications worked? I have been at this for most of the day.
Script 1: Create "Pits Only" and "Radial 1" columns
dt1 = Current Data Table ();
dt1 << Clear Row States;
dt1 << New Column( "Pits Only", Formula (If( :Name( "Height (mm)" ) <= 0, :Name( "Height (mm)"), 0 )) );
dt1 << New Column( "Radial 1", Formula ((X coordinate^2 + Y coordinate^2)^(1/2)));
dt1 << Eval Formula;
obj = dt1 << Distribution( Column( :Pits Only), Horizontal Layout( 1 ), Count Axis);
Script 2: Hide and Exclude rows with Pits Only > 10 or Radial 1 > 100 or Radial 1 < 30
dt =Current Data Table();
dt << Clear Row States;
win = New Window( "Feature Depth" , <<Modal, <<Return Result,
Text Box( "Input Min Feature Depth" ),
minfeat_abs = Number Edit Box( 4 ),
);
mf = win["minfeat_abs"];
mf = -mf/1000;
// show (mf);
dt << Select where((Radial 1> 100) | (Radial 1< 30) | (Pits Only > mf));
dt << hide and exclude;