English (Español a continuación)
This function gets all the members of a certain group, in addition to all their ancestors or their ancestors up to a certain generation or certain level.
The structure of this function consists of two parts:
@ILANCESTORS (Part A, Part B);
«Part A»: A group of members. You can specify:
- If it is within a FIX with the functions @ATTRIBUTE (it selects all the members of the outline that have a certain tribute assigned) or the function @UDA (it selects all the members of the outline that have a certain UDA assigned).
- If it is outside a FIX with the @LIST function.
«Part B»: this part is optional; collects the generation or level to which you want to go up in obtaining the ascendants. It can be indicated with a number (if it is positive it defines a generation and if it is 0 or negative it defines a level) or with the name of the generation or level.
The order in which you get the ascendants is starting with the closest to the specified member, following the next closest, and so on.
Let’s see an example: Starting from the following outline:

The function @ILANCESTORS (@LIST (VALENCIA, BARCELONA), – 2)
The result is:
- BARCELONA
- VALENCIA
- CATALONIA
- LEVANTE
- SPAIN
This function can be used as a parameter to another function that requires a list of members:
For example:

Any question, please send an email to: essbaseeasy@gmail.com
Español
Esta función obtiene todos los miembros de un determinado grupo, además de todos sus ascendientes o de sus ascendientes hasta determinada generación o determinado nivel.
La estructura de esta función consta de dos partes:
@ILANCESTORS(Parte A, Parte B);
“Parte A”: Un grupo de miembros. Se puede especificar:
- Si es dentro de un FIX con las funciones @ATTRIBUTE (selecciona todos los miembros del outline que tienen asignado determinado tributo) o la función @UDA (selecciona todos los miembros del outline que tienen asignado determinado UDA).
- Si es fuera de un FIX con la función @LIST.
“Parte B”: esta parte es opcional; recoge la generación o el nivel hasta el que se quiere subir en la obtención de los ascendientes. Se puede indicar con un número (si es positivo define una generación y si es 0 o negativo define un nivel) o con el nombre de la generación o nivel.
El orden en el que obtiene los ascendientes es comenzando por el más cercano al miembro especificado, siguiendo por el siguiente más cercano y así sucesivamente.
Veamos un ejemplo: Partiendo del siguiente outline:

La función @ILANCESTORS(@LIST(VALENCIA,BARCELONA),-2)
Da como resultado:
- BARCELONA
- VALENCIA
- CATALUÑA
- LEVANTE
- ESPAÑA
Esta función se puede utilizar como parámetro de otra función que requiera una lista de miembros:
Por ejemplo:

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