@SHIFTSIBLING

English (Español a continuación)

This function selects a sibling of a specific member who is “n” positions to the right or left.

The structure of this function consists of two parts:

@SHIFTSIBLING (Part A, Part B);

  • “Part A”: collect the member from which you want to obtain a specific sibling.
  • «Part B»: this part is optional: it is the number that determines the relative position of the sibling to be obtained. Can be:
    • Zero: select the member itself (it is the default number, if no number is specified, Essbase takes this value)
    • Negative number (-n <0): selects a previous sibling that is at “n” positions.
    • Positive number (n> 0): selects a later sibling who is at “n” positions.

If the «n» number of positions is outside the possible sibling range this function gives an empty result.

Let’s see an example:

The following functions return the following results:

@SHIFTSIBLING (“TARRAGONA”);

  • TARRAGONA

@SHIFTSIBLING (“TARRAGONA”, – 1);

  • BARCELONA

@SHIFTSIBLING (“TARRAGONA”, 2);

  • GERONA

This function can be used as a parameter to another function, in which case it must be integrated within the @MEMBER () function.

Let’s see an example

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

Español

Esta función selecciona a un hermano de un miembro específico que se encuentra a “n” posiciones a la derecha o a la izquierda.

La estructura de esta función consta de dos partes:

@SHIFTSIBLING (Parte A, Parte B);

  • “Parte A”: recoge el miembro del que se quiere obtener un hermano determinado.
  • “Parte B”: esta parte es opcional: es el número que determina la posición relativa del hermano que se quiere obtener. Puede ser:
    • 0: selecciona al propio miembro (es el número por defecto, si no se específica ningún número Essbase toma este valor)
    • Número negativo (-n < 0): selecciona un hermano anterior que se encuentra a “n” posiciones.
    • Número positivo (n > 0): selecciona un hermano posterior que se encuentra a “n” posiciones.

Si el “n” número de posiciones está fuera del posible rango de hermanos esta función da un resultado vacío.

Veamos un ejemplo: partiendo del siguiente outline:

Las siguientes funciones devuelven los siguientes resultados:

@SHIFTSIBLING (“TARRAGONA”);

  • TARRAGONA

@SHIFTSIBLING (“TARRAGONA”,-1);

  • BARCELONA

@SHIFTSIBLING (“TARRAGONA”,2);

  • GERONA

Esta función se puede utilizar como parámetro de otra función en cuyo caso hay que integrarla dentro de la función @MEMBER().

Veamos un ejemplo

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

Anuncio publicitario