Hi All,
I am having trouble with a formula to calculate the average of a GetPivotData range (4 different values) while excluding values of 0.
I can get the formula to work using the following Average formula,
=AVERAGE
(GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",W$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",X$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",Y$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",Z$1,"spm_daytype",$E$2))
But when using the AverageIfs function, I cannot work out the structure of the formula.
I would assume it would be,
=AVERAGEIF
(GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",W$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",X$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",Y$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",Z$1,"spm_daytype",$E$2),"<>0")
but this does not work...
You help is MUCH appreciated.
I am having trouble with a formula to calculate the average of a GetPivotData range (4 different values) while excluding values of 0.
I can get the formula to work using the following Average formula,
=AVERAGE
(GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",W$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",X$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",Y$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",Z$1,"spm_daytype",$E$2))
But when using the AverageIfs function, I cannot work out the structure of the formula.
I would assume it would be,
=AVERAGEIF
(GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",W$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",X$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",Y$1,"spm_daytype",$E$2),
GETPIVOTDATA("Average_Estimated_Pax",'Data Pivot (Avg LG Entries)'!$A$4,"stn_desc",$A5,"cqtr",Z$1,"spm_daytype",$E$2),"<>0")
but this does not work...
You help is MUCH appreciated.