SELECTION OF SIBLINGS / SELECCIÓN DE HERMANOS

English (Español a continuación)

The next formulas allow to select siblings of a particular member.

  • They can be used in conditional structures to apply a certain condition to the selected members.
  • In the next examples, we will include the formulas in the outline (in the member “Obj_2022”, of the dynamic dimension “Indicators”).

I.- Siblings

IsSibling: Selects all the siblings of the specified member.

Structure:

  • IsSibling(Member 1, Member 2, [INCLUDEMEMBER])

Select those Members 1 who are siblings of Member 2.

  • [INCLUDEMEMBER]: Is optional; includes Member 2 itself in the result.

Example:

  • IIF(IsSibling([Markets].currentmember, [Germany], INCLUDEMEMBER), Sales * 1.5, Sales * 1.3)

Calculate the value of “Obj_2022”:

  • Siblings of «Germany» (included): Multiplying their sales by 1.5
  • Other members of the «Markets» dimension: Multiplying their sales by 1.3

Siblings: Returns the siblings of the specified member.

Structure:

  • Siblings(“Member”,[Selection],[INCLUDEMEMBER / EXCLUDEMEMEBER])

Selection: Offers various options:

  • LEFT: Selects the siblings located above the specified member.
  • RIGHT: Selects the siblings below the specified member.
  • ALL: Selects all siblings (it is the default option if none is specified).

INCLUDEMEMBER / EXCLUDEMEMEBER: It is optional; determines whether or not the member itself enters in the selection. By default, if not specified, the member is selected.

Let’s see some examples considering «United Kingdom» as the specified member:

II.- Siblings above

FirstSibling: Returns the first sibling of the specified member.

Structure:

  • FirstSibling(Member, [Hierarchy])

Hierarchy: It is optional; can be used with the “Time” dimension to select a particular hierarchy.

In the following outline, considering “Germany” as the specified member:

  • FirstSibling(Germany)

This function can be combined with a range function to select a set of siblings located in the outline above the specified member.

Structure:

  • Count(Intersect({MemberRange(Member.FirstSibling,Member.Lag(n))},{[Dimension].currentmember})) = 1

Selects certain siblings of the specified member.

“n”: Number of positions above the member up to which the siblings are selected.

  • Selects from the first sibling to the sibling located “n” positions above.
  • If n = 0, the member itself is included.

Example:

  • IIF(Count(Intersect({MemberRange(“Germany”.FirstSibling,”Germany”.Lag(2))},{[Markets].currentmember})) = 1, Sales * 1.5, Sales * 1.3)

Calculate the value of “Obj_2022”:

  • Siblings of «Germany» (from France to Italy): Multiplying their sales by 1.5
  • Other members of the «Markets» dimension: Multiplying their sales by 1.3

II.- Siblings below

LastSibling: Returns the last sibling of the specified member.

Structure:

  • LastSibling(Member, [Hierarchy])

Hierarchy: It is optional; can be used with the “Time” dimension to select a particular hierarchy.

In the following outline, considering “Germany” as the specified member:

  • LastSibling(Germany)

This function can be combined with a range function to select a set of siblings located in the outline below the specified member.

Structure:

  • Count(Intersect({MemberRange(Member.LastSibling,Member.Lead(n))},{[ Dimension].currentmember})) = 1

Selects certain siblings of the specified member.

«n»: Number of positions below the member from which the siblings are selected:

  • Selects those siblings located from “n” positions below the specified member up to the last sibling.
  • If n = 0, the member itself is included.

Example:

  • IIF(Count(Intersect({MemberRange(“Germany”.LastSibling,”Germany”.Lead(0))},{[Markets].currentmember})) = 1, Sales * 1.5, Sales * 1.3)

Calculate the value of the member “Obj_2022”:

  • Siblings of «Germany» (from Germany, included, to Portugal): Multiplying their sales by 1.5
  • Other members of the «Markets» dimension: Multiplying their sales by 1.3

Any question, please send an email to: essbaseeasy@gmail.com

Español

Las siguientes fórmulas permiten seleccionar hermanos de un miembro concreto.

  • Se pueden utilizar en estructuras condicionales para aplicar a los miembros seleccionados una condición determinada.
  • En los ejemplos que veremos incluiremos las fórmulas en el outline (en el miembro “Obj_2022”, de la dimensión dinámica “Indicadores”).

I.- Hermanos

IsSibling: Selecciona todos los hermanos del miembro especificado.

Estructura:

  • IsSibling(Miembro 1, Miembro 2, [INCLUDEMEMBER])

Selecciona aquellos Miembros 1 que son hermanos del Miembro 2.

  • [INCLUDEMEMBER]: Es opcional; incluye en el resultado al propio Miembro 2.

Ejemplo:

  • IIF(IsSibling([Mercados].currentmember, [Alemania], INCLUDEMEMBER), Ventas * 1.5, Ventas * 1.3)

Calcula el importe del miembro “Obj_2022”:

  • Hermanos de “Alemania” (incluido): Multiplicando sus ventas por 1,5
  • Resto de miembros de la dimensión “Mercados”: Multiplicando sus ventas por 1,3

Siblings: Devuelve los hermanos del miembro especificado.

Estructura:

  • Siblings(“Miembro”,[Selección],[INCLUDEMEMBER / EXCLUDEMEMEBER])

Selección: Ofrece diversas opciones:

  • LEFT: Selecciona los hermanos situados por encima del miembro especificado.
  • RIGHT: Selecciona los hermanos situados por debajo del miembro especificado.
  • ALL: Selecciona todos los hermanos (es la opción por defecto si no se especifica ninguna).

INCLUDEMEMBER / EXCLUDEMEMEBER: Es opcional; determina si el propio miembro entra o no en la selección. Por defecto, si no se especifica, el miembro entra en la selección.

Veamos algunos ejemplos tomando como miembro “Reino Unido”:

II.- Hermanos superiores

FirstSibling: Devuelve el primer hermano del miembro especificado.

Estructura:

  • FirstSibling(Miembro, [Jerarquía])

Jerarquía: Es opcional; se puede utilizar con la dimensión “Tiempo” para seleccionar una jerarquía determinada.

En el siguiente outline, tomando como miembro de referencia “Alemania”:

  • FirstSibling(Alemania)

Esta función la podemos combinar con una función de rango para seleccionar un conjunto de hermanos situados en el outline por arriba del miembro especificado.

Estructura:

  • Count(Intersect({MemberRange(Miembro.FirstSibling,Miembro.Lag(n))},{[Dimensión].currentmember})) = 1

Selecciona determinados hermanos del miembro especificado.

“n”: Número de posiciones por arriba del miembro hasta la cual computan los hermanos.

  • Selecciona desde el primer hermano hasta el hermano situado a “n” posiciones por arriba.
  • Si n = 0 queda incluido el propio miembro.

Ejemplo:

  • IIF(Count(Intersect({MemberRange(“Alemania”.FirstSibling,”Alemania”.Lag(2))},{[Mercados].currentmember})) = 1, Ventas * 1.5, Ventas * 1.3)

Calcula el valor del miembro “Obj_2022”:

  • Hermanos de “Alemania” (desde Francia hasta Italia): Multiplicando sus ventas por 1,5
  • Resto de miembros de la dimensión “Mercados”: Multiplicando sus ventas por 1,3

II.- Hermanos inferiores

LastSibling: Devuelve el último hermano del miembro especificado.

Estructura:

  • LastSibling(Miembro, [Jerarquía])

Jerarquía: Es opcional; se puede utilizar con la dimensión “Tiempo” para seleccionar una jerarquía determinada.

En el siguiente outline, tomando como miembro de referencia “Alemania”:

  • LastSibling(Alemania)

Esta función la podemos combinar con una función de rango para seleccionar un conjunto de hermanos situados en el outline por debajo del miembro especificado.

Estructura:

  • Count(Intersect({MemberRange(Miembro.LastSibling,Miembro.Lead(n))},{[ Dimensión].currentmember})) = 1

Selecciona determinados hermanos del miembro especificado.

“n”: Número de posiciones por debajo del miembro desde la cual computan los hermanos:

  • Computan aquellos hermanos situados desde “n” posiciones por debajo del miembro especificado hasta el último hermano.
  • Si n = 0 queda incluido el propio miembro.

Ejemplo:

  • IIF(Count(Intersect({MemberRange(“Alemania”.LastSibling,”Alemania”.Lead(0))},{[Mercados].currentmember})) = 1, Ventas * 1.5, Ventas * 1.3)

Calcula el valor del miembro “Obj_2022”:

  • Hermanos de “Alemania” (desde Alemania, incluido, hasta Portugal): Multiplicando sus ventas por 1,5
  • Resto de miembros de la dimensión “Mercados”: Multiplicando sus ventas por 1,3

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

Anuncio publicitario