@SHIFT

English (Español a continuación)

This function assigns to a member the value of a variable of another member of the outline that is placed at “x” positions to its right (or to its left).

Its structure consists of 3 parts:

  • @SHIFT (A, B, C)

Part A: determine the variable that we are going to assign.

Part B: It is an integer «n» (.., -3, -2, -1, 0, 1, 2, 3, …) that determines the number of positions to move to the right (positive number) or to the left (negative number) of the member.

  • With a negative number it works like the function @PRIOR
  • With a positive number it works like the function @NEXT

Let’s see an example: We look at the member «June»:

  • If “n” = 2 this function selects “August”, while if “n” = -3 this function selects “March”.

Part C: sets the series of members through which we are going to move to locate the searched member. This series can be fixed in various ways:

A list of members.

  • For example: («Madrid», «Barcelona», «Valencia», …)

A function that determines a series of members.

  • For example: @RELATIVE (“Markets”, 0)

This part is optional, if its left empty essbase moves through the zero-level members of the time dimension (January, February, March…).

Let’s see an example of this formula:

  • “Sales 1” = @SHIFT(“Sales”,2,@RELATIVE(“Months”,0));

This function calculates the variable “Sales 1” which is equal to the variable “Sales”, moving through the zero-level members of the time dimension, moving 2 positions to the right.

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

Español

Esta función permite asignar a un miembro como valor de una variable el que tiene otro miembro del outline que se sitúa a “x” posiciones a su derecha (o a su izquierda).

Su estructura consta de 3 partes: @SHIFT(A,B,C)

Parte A: determina la variable que vamos a asignar.

Parte B: Es un número entero “n” (.., -3, -2, -1, 0, 1, 2, 3,…) que determina el número de posiciones que hay que desplazarse hacia la derecha (número positivo) o hacia la izquierda (número negativo) del miembro.

  • Con un número negativo funciona como la función @PRIOR
  • Con un número positivo funciona como la función @NEXT

Veamos un ejemplo: Nos situamos en el miembro “junio”:

Si “n” = 2 esta función selecciona “Agosto”, mientras que si “n” = -3 esta función selecciona “Marzo”.

Parte C: fija la serie de miembros por la que nos vamos a mover para localizar el miembro buscado.  Esta serie se puede fijar de diversas maneras:

  • Una lista de miembros.

Por ejemplo: (“Madrid”,”Barcelona”,”Valencia”,…)

  • Una función que determina una serie de miembros.

Por ejemplo: @RELATIVE(“Mercados”,0)

Esta parte es opcional, si no se establece essbase se mueve a través de los miembros de nivel cero de la dimensión tiempo (enero, febrero, marzo…).

Veamos un ejemplo de esta fórmula:

Esta función calcula la variable “Ventas 1” que es igual a la variable “Ventas”, moviéndose por los miembros de nivel cero de la dimensión periodo, desplazándose 2 posiciones hacia la derecha.

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

Anuncio publicitario