Ciao,
Vorrei calcolare i dati delle righe facendo riferimento a colonne/dati trovati in un'altra tabella.Sto cercando di calcolare il rendimento nella tabella n. 2 estraendo i dati dalla tabella n. 1 senza unirmi alle tabelle.C'è un modo per fare questo? Ecco cosa ho finora...
Tabella #1 = WaferRgDt
Tabella n. 2 = dt1: sto cercando di popolare questo con i dati calcolati dalla tabella n

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"))})
)
)
);Il problema logico principale con questo codice che sto riscontrando è che la colonna "FailDie" non fa parte della tabella dt1, ma invece fa parte della tabella n. 2 e non penso che sia in grado di leggere quei dati nel suo stato attuale .
Ecco un esempio di un modo per gestire ciò che stai cercando di fare:

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 );
);