@MEMBERAT

English (Español a continuación)

This function selects the member of a list that occupies a specific position.

Its structure consists of two parts:

  • @MEMBERAT (Part A, Part B)

«Part A»: list of members or function that determines a set of members.

Examples:

  • @MEMBERAT (@LIST (Madrid, Barcelona, ​​Valencia, Seville), Part B)
  • @MEMBERAT (@RELATIVE (Markets, 0), Part B)

«Part B»: is a number that indicates the position of the member to be selected within the list.

  • If the number is positive, it starts counting from the beginning of the list.
  • If negative it starts counting up from the end of the list
  • If it is zero or is outside the range of the list, it returns an error.

Let’s look at an example. Starting from the following outline.

If we apply the function:

  • @MEMBERAT (@RELATIVE (Markets, 0), 1) select the member “GERMANY”
  • @MEMBERAT (@RELATIVE (Markets, 0), 2) selects the member “ANDALUCIA”
  • @MEMBERAT (@RELATIVE (Markets, 0), 5) selects the member “LERIDA”

This function can be used as a parameter within another function.

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

Español

Esta función selecciona el miembro de una lista que ocupa una posición concreta.

Su estructura consta de dos partes:

@MEMBERAT(Parte A, Parte B)

“Parte A”: lista de miembros o función que determina un conjunto de miembros.

Ejemplos:

  • @MEMBERAT(@LIST(Madrid, Barcelona, Valencia, Sevilla), Parte B)
  • @MEMBERAT(@RELATIVE(Mercados,0), Parte B)

“Parte B”: es un número que indica la posición que ocupa dentro de la lista el miembro que se quiere seleccionar.

  • Si el número es positivo comienza a contar desde el principio de la lista.
  • Si es negativo comienza a contar hacia arriba desde el final de la lista
  • Si es cero o está fuera del rango de la lista devuelve un error.

Veamos un ejemplo. Partiendo del siguiente outline.

Si aplicamos la función:

  • @MEMBERAT(@RELATIVE(Mercados,0),1) selecciona el miembro “ALEMANIA”
  • @MEMBERAT(@RELATIVE(Mercados,0),2) selecciona el miembro “ANDALUCIA”
  • @MEMBERAT(@RELATIVE(Mercados,0),5) selecciona el miembro “LERIDA”

Esta función se puede utilizar como parámetro dentro de otra función.

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

Anuncio publicitario