@CURRMBRRANGE

English (Español a continuación)

This function generates a range of elements based on the calculated member.

The structure of this function consists of 5 parameters:

  • @CURRMBRRANGE («Part A», «Part B», «Part C», «Part D», «Part E»)

«Part A»: Dimension in which the range is calculated.

“Part B”: 2 options: “GEN” (if the range is calculated for one generation) or “LEV” (if the range is calculated for one level).

«Part C»: is a number that determines the number of the generation (or level) for which the rank is calculated.

For example, starting from the following Outline of the dimension «Time»:

If we select this dimension in «part A» and NIV in «Part B»:

  • If we select 0 in “Part C” this function calculates this range for the months.
  • If we select 1 in “Part C” this function calculates this range for the quarters.
  • If we select 2 in “Part C” this function calculates this range for the semesters.

We can also set the number of the generation (or level) relatively, using the currently calculated member as a reference:

  • For example: if we use the @CURLEV (Period) function as a parameter, it takes as the level the one corresponding to the dimension «Period» of the calculated member.

«Part D»: Determines the first member of the range. There are different options:

  • Empty: the beginning of the range is the first member of the generation (or level) that has been defined in “Part C”.
  • Negative number: determines how many members prior to the calculated member is the first member of the range.
  • 0 – The first member of the range is the calculated member.
  • Positive number: determines how many members after the calculated member is the first member of the range.

«Part E»: Determines the last member of the range. There are different options:

  • Empty: the end of the range is the last member of the generation (or level) that has been defined in “Part C”.
  • Negative number: determines how many members prior to the calculated member is the last member of the range.
  • 0 – The last member of the range is the calculated member.
  • Positive number: determines how many members after the calculated member is the last member of the range.

This function can be used within a function that requires a range:

  • “Average Sales” = @SUMRANGE (SKIPNONE, Sales, @ CURRMBRRANGE ())

Let’s see an example:

«Average Sales» = @SUMRANGE (SKIPNONE, Sales, @ CURRMBRRANGE (Time, LEV, 0, -2,2))

The “Average Sales” for each month (level 0) are calculated as the average of the sales in a range that begins two months before the calculated month and ends two months after the calculated month.

For example, the “Average Sales” for March are the average sales for the period Jan-May.

As a particularity:

  • The “Average Sales” for January are the average sales for the period Jan-Mar (since there are no two months ahead of January).
  • The “Average Sales” for February are the average sales for the period Jan-Apr.
  • The “Average Sales” for November are the average sales for the period Sep-Dec.
  • The “Average Sales” for December are the average sales for the period Oct-Dec (since there are no two months behind December).

Observations:

  • This @CURRMBRRANGE function cannot be used within a FIX.

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

Español

Esta función genera un rango de elementos tomando como referencia el miembro calculado.

La estructura de esta función consta de 5 parámetros:

  • @CURRMBRRANGE(“Parte A”, “Parte B”, “Parte C”, “Parte D”, “Parte E”)

“Parte A”: Dimensión dentro de la que se calcula el rango.

“Parte B”: 2 opciones: “GEN” (si el rango se calcula para una generación) o “LEV” (si el rango se calcula para un nivel).

“Parte C”: es un número que determina el número de la generación (o del nivel) para el que se calcula el rango.

Por ejemplo, partiendo del siguiente Outline de la dimensión “Tiempo”:

Si seleccionamos esta dimensión en la “parte A” y NIV en la “Parte B”:

  • Si seleccionamos 0 en la “Parte C” esta función calcula este rango para los meses.
  • Si seleccionamos 1 en la “Parte C” esta función calcula este rango para los trimestres.
  • Si seleccionamos 2 en la “Parte C” esta función calcula este rango para los semestres.

También podemos fijar el número de la generación (o nivel) de forma relativa, utilizando como referencia el miembro actualmente calculado:

  • Por ejemplo: si utilizamos como parámetro la función @CURLEV(Periodo) toma como nivel el correspondiente a la dimensión “Periodo” del miembro calculado.

“Parte D”: Determina el primer miembro del rango. Hay diferentes opciones:

  • Vacío: el comienzo del rango es el primer miembro de la generación (o nivel) que se ha definido en la “Parte C”.
  • Número negativo: determina cuantos miembros previos al miembro calculado es el primer miembro del rango.
  • 0: el primer miembro del rango es el miembro calculado.
  • Número positivo: determina cuantos miembros posteriores al miembro calculado es el primer miembro del rango.

“Parte E”: Determina el último miembro del rango. Hay diferentes opciones:

  • Vacío: el final del rango es el último miembro de la generación (o nivel) que se ha definido en la “Parte C”.
  • Número negativo: determina cuantos miembros previos al miembro calculado es el último miembro del rango.
  • 0: el último miembro del rango es el miembro calculado.
  • Número positivo: determina cuantos miembros posteriores al miembro calculado es el último miembro del rango.

Esta función de puede utilizar dentro de una función que exija un rango:

  • “Ventas Medias”= @SUMRANGE(SKIPNONE,Ventas,@CURRMBRRANGE())

Veamos un ejemplo:

“Ventas Medias”= @SUMRANGE(SKIPNONE,Ventas,@CURRMBRRANGE(Tiempo,LEV,0,-2,2))

Las “Ventas Medias” de cada mes (nivel 0) se calculan como promedio de las ventas de un rango que comienza dos meses antes del mes calculado y que finaliza dos meses después del mes calculado.  

Por ejemplo, las “Ventas Medias” de marzo son las ventas promedios del periodo ene-may.

Como particularidad:

  • Las “Ventas Medias” de enero son las ventas promedios del periodo ene-mar (ya que no hay dos meses por delante de enero).
  • Las “Ventas Medias” de febrero son las ventas promedios del periodo ene-abr.
  • Las “Ventas Medias” de noviembre son las ventas promedios del periodo sep-dic.
  • Las “Ventas Medias” de diciembre son las ventas promedios del periodo oct-dic (ya que no hay dos meses por detrás de diciembre).

Observaciones:

  • Esta función @CURRMBRRANGE no se puede utilizar dentro de un FIX.

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

Anuncio publicitario