@RANGE

English (Español a continuación)

This function returns a list of members consisting of the combination of a member from the variable dimension and a list of members from another dimension.

Its structure consists of two parts:

  • @RANGE (Part A, Part B);

«Part A»: is a member of the variable dimension (for example: sales, expenses, units …).

«Part B»: This part is optional. Collect the list of members with which the variable is crossed. It can be defined by a list of members: for example: @LIST (Valencia, Barcelona, ​​Madrid, Malaga); or by a function that returns a relationship of members: for example: @RELATIVE (“Markets”, 0).

If this part is left empty, the function takes as a list of members the levels 0 of the dimension defined as «Time».

Let’s see an example: starting from the following outline:

The @RANGE («Sales», @ RELATIVE (Markets, 0)) function returns:

  • GERMANY -> SALES
  • ANDALUCIA -> SALES
  • BARCELONA -> SALES
  • TARRAGONA -> SALES

The @RANGE function can be used as a parameter to another function that requires a list of members.

For example:

Based on the following data:

Applying the previous calculation we would obtain the following result:

The @RANGE function cannot be used within a FIX.

Español

Esta función devuelve una lista de miembros formada por la combinación de un miembro de la dimensión variable y una lista de miembros de otra dimensión.

Su estructura consta de dos partes:

@RANGE(Parte A, Parte B);

“Parte A”: es un miembro de la dimensión variable (por ejemplo: ventas, gastos, unidades…).

“Parte B”: Esta parte es opcional. Recoge la lista de miembros con la que se cruza la variable. Puede venir definido por una lista de miembros: por ejemplo: @LIST(Valencia,Barcelona,Madrid,Málaga); o por una función que devuelva una relación de miembros: por ejemplo: @RELATIVE(“Mercados”,0).

Si esta parte se deja vacía la función toma como lista de miembros los niveles 0 de la dimensión definida como “Tiempo”.

Veamos un ejemplo: partiendo del siguiente outline:

La función @RANGE(“Ventas”,@RELATIVE(Mercados,0)) devuelve:

  • ALEMANIA -> VENTAS
  • ANDALUCIA -> VENTAS
  • BARCELONA -> VENTAS
  • TARRAGONA -> VENTAS

La función @RANGE se puede utilizar como parámetro de otra función que requiera una lista de miembros.

Por ejemplo:

Partiendo de los siguientes datos:

Aplicando el cálculo anterior obtendríamos el siguiente resultado:

La función @RANGE no se puede utilizar dentro de un FIX.

Anuncio publicitario