English (Español a continuación)
This function allows you to apply a specific function to a list of members.
Its structure consists of five parts:
@RANGE (Part A, Part B, Part C, Part D, Part E);
«Part A»: The function to be applied to a list of members. They can be the following functions:
- @ANCESTORS
- @IANCESTORS
- @CHILDREN
- @ICHILDREN
- @DESCENDANTS
- @IDESCENDANTS
- @EQUAL
- @MBRPARENT
- @SIBLINGS
- @ISIBLINGS
«Part B»: The list of members to which the function selected in the previous point applies. It can be defined by a list of members: for example: @LIST (Spain, Germany); or by a function that returns a relationship of members: for example: @RELATIVE (“Markets”, 0).
«Part C»: This part is optional; only applies if the function selected in Part A is one of the following:
- @ANCESTORS
- @IANCESTORS
- @DESCENDANTS
- @IDESCENDANTS
This part is a number that indicates the generation or level up to which the selected function is applied. If the number is positive it defines a generation and if it is 0 or negative it defines a level.
“Part D”: This part is optional and only applies if the function selected in Part A is one of the following:
- @ANCESTORS
- @IANCESTORS
- @DESCENDANTS
- @IDESCENDANTS
It takes two possible values:
- LAYERONLY: Indicates that it only selects the members that are in the generation or level specified in the previous point.
- ALL: Indicates that it selects all the members located between the generation or level specified in the previous point up to the upper member specified in Part E.
“Part E”: This part is optional and only applies if the function selected in Part A is one of the following:
- @ANCESTORS
- @IANCESTORS
- @DESCENDANTS
- @IDESCENDANTS
- @EQUAL
Selects the upper member used by the @EQUAL function, or the one used in the other 4 functions when the “ALL” option has been specified in Part D.
Español
Esta función permite aplicar una función determinada a una lista de miembros.
Su estructura consta de cinco partes:
@RANGE(Parte A, Parte B, Parte C, Parte D, Parte E);
“Parte A”: Recoge la función que se va a aplicar a una lista de miembros. Pueden ser las siguientes funciones:
- @ANCESTORS
- @IANCESTORS
- @CHILDREN
- @ICHILDREN
- @DESCENDANTS
- @IDESCENDANTS
- @EQUAL
- @MBRPARENT
- @SIBLINGS
- @ISIBLINGS
“Parte B”: Recoge la lista de miembros a la que se aplica la función seleccionada en el punto anterior. Puede venir definido por una lista de miembros: por ejemplo: @LIST(España,Alemania); o por una función que devuelva una relación de miembros: por ejemplo: @RELATIVE(“Mercados”,0).
“Parte C”: Esta parte es opcional; sólo se aplica si la función seleccionada en la Parte A es una de las siguientes:
- @ANCESTORS
- @IANCESTORS
- @DESCENDANTS
- @IDESCENDANTS
Esta parte es un número que indica la generación o el nivel hasta el que se aplica la función seleccionada. Si el número es positivo define una generación y si es 0 o negativo define un nivel.
“Parte D”: Esta parte es opcional y sólo se aplica si la función seleccionada en la Parte A es una de las siguientes:
- @ANCESTORS
- @IANCESTORS
- @DESCENDANTS
- @IDESCENDANTS
Toma dos posibles valores:
- LAYERONLY: Indica que sólo selecciona los miembros que están en la generación o nivel especificado en el punto anterior.
- ALL: Indica que selecciona todos los miembros situados entre la generación o nivel especificado en el punto anterior hasta el miembro superior especificado en la Parte E.
“Parte E”: Esta parte es opcional y sólo se aplica si la función seleccionada en la Parte A es una de las siguientes:
- @ANCESTORS
- @IANCESTORS
- @DESCENDANTS
- @IDESCENDANTS
- @EQUAL
Recoge el miembro superior que utiliza la función @EQUAL, o el que se utiliza en las otras 4 funciones cuando en la Parte D se ha especificado la opción “ALL”.