Ciao a tutti,
Sono nuovo! Grazie in anticipo per l'aiuto. Vorrei creare un filtro o uno script che mi consentirà di scegliere determinate righe nella mia tabella.
Tabella di esempio:
Test del nome
xx 1
xx 2
yy 1
zz 1
Vorrei poter attivare / disattivare in modo tale da poter vedere solo le righe con il valore più grande per il test (o il più piccolo)
Valore massimo per la tabella finale del test:
Test del nome
xx 2
yy 1
zz 1
Valore minimo per la tabella finale del test:
Test del nome
xx 1
yy 1
zz 1
Grazie!
io
Molteplici opzioni. È possibile scegliere almeno da Seleziona dove con sottoinsiemi, Tabella o Tabella riepilogativa.
Ecco un esempio con Seleziona dove e sottoinsiemi per creare nuove tabelle con valori minimi e massimi:
Names Default To Here(1);
dt = New Table("table",
Add Rows(4),
Compress File When Saved(1),
New Column("Name", Character, "Nominal", Set Values({"xx", "xx", "yy", "zz"})),
New Column("Test",
Numeric,
"Continuous",
Format("Best", 12),
Set Values([1, 2, 1, 1])
)
);
//Maximum table
dt << Select Where(:test == ColMax(:test, :name));
dt << Subset(Selected Rows, Selected columns only(0), Output Table("Largest value for Test end table"));
dt << Clear Select;
//Minimum table
dt << Select Where(:test == ColMin(:test, :name));
dt << Subset(Selected Rows, Selected columns only(0), Output Table("Smallest value for Test end table"));
dt << Clear Select;