English (Español a continuación)
This function obtains the median (value that is right in the middle of a series, leaving above and below 50% of the rest of values).
Its structure consists of 2 parts:
- @MEDIAN(A, B);
Part «A»: determines the treatment given to members that are zero or missing (no data). There are 4 options:
- SKIPNONE: It takes into account all the values of the defined series for the calculation of the median.
- SKIPMISSING: For the calculation of the median exclude those members that have no data.
- SPIPZERO: For the calculation of the median exclude those members that have zero value.
- SKIPBOTH: For the calculation of the median exclude those members that have zero value or that have no data.
Part “B”: sets the range of values in which the median will be calculated:
- Can be set as a member list
- As a function that determines a range: @RELATIVE, @DESCENDANTS …
- …
Let’s see an example: Starting from the following series:

The function:
- “Median_Sales” = @MEDIAN(SKIPNONE,@RANGE(“Sales”,@RELATIVE(Year,0)));
Results:
- «Median_Sales» = 47.5
We can see that if we order the values from smallest to largest, in the center are 45 and 50; and its average is 47.5.
Any question, please send an email to: essbaseeasy@gmail.com
Español
Esta función obtiene la mediana (valor que está justo en el medio de una serie, dejando por encima y por debajo el 50% del resto de valores).
Su estructura consta de 2 partes:
@MEDIAN(A,B);
Parte “A”: determina el tratamiento que se da a los miembros que son cero o missing (sin dato). Caben 4 opciones:
- SKIPNONE: Tiene en cuenta todos los valores de la serie definida para el cálculo de la mediana.
- SKIPMISSING: Para el cálculo de la mediana excluye aquellos miembros que no tengan datos.
- SPIPZERO: Para el cálculo de la mediana excluye aquellos miembros que tengan valor cero.
- SKIPBOTH: Para el cálculo de la mediana excluye aquellos miembros que tengan valor cero o que no tengan datos.
Parte “B”: fija el rango de valores en el que se va a calcular la mediana:
- Se puede fijar como una lista de miembros
- Como una función que determina un rango: @RELATIVE, @DESCENDANTS…
- …
Veamos un ejemplo: Partiendo de la siguiente serie:

La función:

Da como resultado:
“Median_Ventas” = 47,5
Podemos ver que si ordenamos los valores de menor a mayor, en el centro se sitúan el 45 y el 50; y su promedio es 47,5.
Cualquier consulta envía, por favor, un correo a: essbaseeasy@gmail.com