Calcolo delle medie all'interno di una scheda datiSpero di ottenere aiuto nel calcolo delle medie all'interno di una tabella. Devo essere in grado di calcolare le medie di un dato intervallo di input per ciascuno dei test e quindi creare una nuova colonna che contenga le medie in modo da poterle tracciare. test_1 e test_3 hanno due (2) medie di banda e test_3 ha tre (3) medie di banda
TEST_1:
BAND_1 = Media (8-11)
BAND_2 = Media (14.5 - 17.5)
test_3:
BAND_1 = Media (8-11)
BAND_2 = Media (14.5 - 17.5)
test_2:
BAND_1 = Media (8-10)
BAND_2 = Media (8-11)
BAND_3 = Media (14.5 - 17.5)
Ho allegato una tabella di dati come esempio dell'aspetto attuale dei dati (colonne 1 - 7)
le colonne 8-10 erano le medie degli input che ho fatto manualmente in Excel
la colonna 11-13 è stata eseguita anche in Excel e sono i valori delle medie di quella specifica banda
Ho una tabella di dati con le seguenti informazioni
RowCol-Chnl-PartNo = Identificatore univoco
Mode = Test ModeQ
TesState = Test StateQA
input = input di prova
test_1 / test_2 / test_3 = dati di output.
Grazie in anticipo
Ri: Calcolo delle medie all'interno di una scheda datiHo ricreato il tuo tavolo usando le formule per ciascuna delle tue colonne 8-13. Questi sono basati su una colonna nascosta che ho creato, chiamato "Band". Puoi esaminare ciascuna delle formule per vedere come le ho create.
C'è un problema Nella voce, il test 2 viene trattato in modo diverso, in quanto si specificano 3 bande, ma nella tabella dei dati di esempio, l'output creato da Excel mostra solo 2 bande. Inoltre, le bande si sovrappongono per definizione. Non capisco come intendi gestirlo. Stai pensando che le righe con valori di input di 8-10 avranno delle medie nelle tue colonne avg finali, basate solo su 8-10, e se una riga ha un valore di 10.25-11 che avrebbe una media di 8- 11 file?
La Base Table2, ha un'ipotesi su come siano i 3 livelli di banda per test3.
Vedi le tabelle dei dati allegate per la mia risposta finora
Ri: Calcolo delle medie all'interno di una scheda datiGrazie @txnelson . Sto guardando questo proprio ora .. Sì, purtroppo test_2 deve essere trattato in modo diverso. Se osservi attentamente quando solo la modalità = Tx, vedrai 3 bande 8-10 (numero medio @ input 10), 10-11 (numero medio @ input 11) e 14.5 - 17.5 (numero medio @ input 17.5),
test_2 when mode = Rx è uguale a test_1 e test_3. 2 bande 8-11 (numero medio @ input 11) e 14.5 - 17.5 (numero medio @ input 17.5)
Sto avendo la maggior difficoltà con quel test_2 @ mode = Tx
New Column( "band",
numeric,
Formula(
If(
8 <= :input <= 11, 11,
14.5 <= :input <= 17.5, 17.5,
.
)
)
);
New Column( "band3",
numeric,
Formula(
If(
8 <= :input <= 10 & :mode == "Tx", 10,
10 < :input <= 11 & :mode == "Tx", 11,
8 <= :input <= 11 & :mode == "Rx", 11,
14.5 <= :input <= 17.5, 17.5,
.
)
)
);
Ri: Calcolo delle medie all'interno di una scheda datiHo modificato le tue formule e ho aggiunto un'altra colonna di bande. Questo ha popolato correttamente le colonne.
New Column( "band1",
numeric,
Formula(
If(
8 <= :input <= 11, 11,
14.5 <= :input <= 17.5, 17.5,
.
)
)
);
New Column( "band2",
numeric,
Formula(
If(
8 <= :input <= 10 & :mode == "Tx", 10,
.
)
)
);
New Column( "band3",
numeric,
Formula(
If(
10 <= :input <= 11 & :mode == "Tx", 11,
.
)
)
);
New Column( "AvgS11M",
Numeric,
Formula(
If( :band1 == :input,
Col Mean(
:test_1,
:Name( "RowCol-Chnl-PartNo" ),
:mode,
:teststate,
:band1
),
.
)
)
);
New Column( "AvgS22M",
Numeric,
Formula(
If( :band1 == :input,
Col Mean(
:test_3,
:Name( "RowCol-Chnl-PartNo" ),
:mode,
:teststate,
:band1
),
.
)
)
);
New Column( "AvgS21M",
Numeric,
Formula(
If(
mode == "Rx" & :band1 == :input, Col Mean( :test_2, :Name( "RowCol-Chnl-PartNo" ), :mode, :teststate, :band1 ),
mode == "Tx" & :band2 == :input, Col Mean( :test_2, :Name( "RowCol-Chnl-PartNo" ), :mode, :teststate, :band2 ),
mode == "Tx" & :band3 == :input, Col Mean( :test_2, :Name( "RowCol-Chnl-PartNo" ), :mode, :teststate, :band3 ),
.
)
)
);
New Column( "S11M_AVG",
Numeric,
Formula(
If( Is Missing( :Band1 ) == 0,
Col Mean(
:test_1,
:Name( "RowCol-Chnl-PartNo" ),
:mode,
:teststate,
:band1
),
.
)
)
);
New Column( "S22M_AVG",
Numeric,
Formula(
If( Is Missing( :Band1 ) == 0,
Col Mean(
:test_3,
:Name( "RowCol-Chnl-PartNo" ),
:mode,
:teststate,
:band1
),
.
)
)
);
New Column( "S21M_AVG",
Numeric,
Formula(
If(
mode == "Rx" & Is Missing( :Band1 ) == 0, Col Mean( :test_2, :Name( "RowCol-Chnl-PartNo" ), :mode, :teststate, :band1 ),
mode == "Tx" & Is Missing( :Band2 ) == 0, Col Mean( :test_2, :Name( "RowCol-Chnl-PartNo" ), :mode, :teststate, :band2 ),
mode == "Tx" & Is Missing( :Band3 ) == 0, Col Mean( :test_2, :Name( "RowCol-Chnl-PartNo" ), :mode, :teststate, :band3 ),
.
)
)
);
Ri: Calcolo delle medie all'interno di una scheda datiBel lavoro ... .... Sono felice di poterti aiutare ..... scusa se non ho visto il Tx vs. Requisito Rx nei dati per il test2 .....