English (Español a continuación)
This function obtains the ancestor of the calculated member as many levels above as indicated.
Its structure consists of 3 parts:
- @ANCEST (A, B, C);
Part «A»: indicates the dimension through which to ascend to obtain the ancestry of the calculated member.
Part “B”: it is a number and indicates how many levels to ascend.
- If the number is «1» this function is equivalent to @PARENT.
Part “C”: it is optional, it select a member from another dimension that will cross with the ascendant to form a combined member.
The @ANCEST function cannot be used within a FIX.
Let’s see an example:

The function:
- @ANCEST(“Vendors”,2,”Sales”);
When the calculated member is «Rodrigo», this function returns:
- «South Area» -> «Sales»
It moves up 2 levels above the calculated member and crosses it with the “Sales” member.
When the calculated member is «Malaga», this function returns:
- «Vendors» -> «Sales»
The @ANCEST function can be used as a parameter in another function that requires a member or a list of members.
- @RELATIVE(@ANCEST(“Vendors”,2,”Sales”),0);
Any question, please send an email to: essbaseeasy@gmail.com
Español
Esta función obtiene el ascendiente del miembro calculado tantos niveles por arriba como se le indique.
Su estructura consta de 3 partes:
@ANCEST(A,B,C);
Parte “A”: indica la dimensión por la que va a ascender para obtener el ascendiente del miembro calculado.
Parte “B”: es un número e indica el número de niveles que va a ascender para localizar el ascendiente.
Si el número es “1” esta función equivale a la función @PARENT.
Parte “C”: es opcional, recoge un miembro de otra dimensión que va a cruzar con el ascendiente para formar un miembro combinado.
La función @ANCEST no se puede utilizar dentro de un FIX.
Veamos un ejemplo: Partiendo del siguiente outline:

La función:

Cuando el miembro calculado sea “Rodrigo”, esta función retorna:
“Zona Sur” -> “Ventas”
Es decir, sube 2 niveles por encima del miembro calculado y lo cruza con el miembro “Ventas”.
Cuando el miembro calculado sea “Málaga”, esta función retorna:
“Vendedores” -> “Ventas”
La función @ANCEST se puede utilizar como parámetro dentro de otra función que requiera un miembro o una lista de miembros.

Cualquier consulta envía, por favor, un correo a: essbaseeasy@gmail.com