Hola,
Me gustaría calcular los datos de fila haciendo referencia a columnas/datos que se encuentran en otra tabla.Estoy tratando de calcular el rendimiento en la tabla n.° 2 extrayendo datos de la tabla n.° 1 sin unir las tablas.¿Hay alguna forma de hacer esto? Esto es lo que tengo hasta ahora...
Tabla #1 = WaferRgDt
Tabla n.º 2 = dt1: estoy tratando de completar esto con datos que se calculan a partir de la Tabla n.º 1

For( j = 1, j <= N Rows( dtWaferIDList ), j++,
Eval(
Parse(
tempj = Column( dtWaferIDList, 1 )[j];
dt1 << select where( :Wafer == tempj);
dt1 << Add Rows({Wafer = tempj
, NTested = If( Selected( Row State( Row() ) ), Col Number( :Name("FailDie")))
, GoodDie = If( Selected( Row State( Row() ) ), Col Number( If(:Name("FailDie") == 0, 1, . )))
, Yield = If( Selected( Row State( Row() ) ), 100 * :Name("GoodDie") / :Name("NTested"))})
)
)
);El principal problema lógico con este código que tengo es que la columna "FailDie" no es parte de la tabla dt1, sino parte de la Tabla n. ° 2 y no creo que pueda leer esos datos en su estado actual .
Aquí hay un ejemplo de una forma de manejar lo que está buscando hacer:

Names Default To Here( 1 );
dt = Open( "$sample_data/big class.jmp" );
dt1 = new table("Final",
new Column("Gender", character),
new column("Mean"),
new column("Count")
);
Summarize( dt, dtWaferIDList = By( :sex ) );<BR />
// Loop across groups found in Summarize
// Changed to using k as an index. There is a j() function in JMP
// and using k will avoid any confusion
For( k = 1, k <= N Items( dtWaferIDList ), k++,
dt1 << add rows( 1 );
dt1:Gender[k] = dtWaferIDList[k];
// Find rows in dt data table that match the current Gender
theRows = dt << get rows where( dt:sex == dtWaferIDList[k] );
// Calculate Mean
dt1:Mean[k] = Mean( dt:Height[theRows] );
// Calculate the Count
dt1:Count[k] = N Rows( theRows );
);