Mi dispiace, ma non capisco completamente cosa stai cercando di fare. Spero che, per continuare la conversazione e possibilmente darvi alcune metodologie da rivedere, ho alcune JSL in basso che creano una tabella di dati simile alla vostra tabella, con 3 diverse formule che utilizzano metodi diversi per calcolare una media. Dai un'occhiata e vedi se ti dà quello che vuoi o, in caso contrario, puoi essere più specifico in quello che stai cercando di calcolare.
New Table( "Example",
Add Rows( 4 ),
New Column( "Label",
Character,
"Nominal",
Set Values( {"Dry", "Wet", "outlet Dry", "Outlet Wet"} )
),
New Column( "a",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [80, 67, 57, 55] ),
Set Display Width( 47 )
),
New Column( "b",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [79, 66, 59, 57] )
),
New Column( "c",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [88, 77, 66, 55] )
),
New Column( "One",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula(
dt = Current Data Table();
Mean( dt[Row(), Index( 2, 4 )] );
)
),
New Column( "two",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula(
dt = Current Data Table();
Mean( dt[Index( 3, 4 ), Index( 2, 4 )] );
)
),
New Column( "three",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula(
dt = Current Data Table();
theColumns = dt << get column names( numeric );
Remove From( theColumns, 4, 2 );
Mean( theColumns );
)
)
)Ciao a tutti,
Come posso ottenere il valore medio tra la riga 3 e la riga 4 utilizzando le variabili?
Stavo pensando di fare qualcosa di simile al seguente, ma non ha funzionato
Grazie e la tua risposta è molto apprezzata!