@XRANGE

English (Español a continuación)

This function returns a list with the members in the outline between two determined members (these two members are also included in the result).

Its structure consists of two parts:

@RANGE (Part A, Part B);

  • «Part A» and «Part B»: these are the two members that set the initial limit and the final limit of the range selected by the function.

These members can be two simple members:

  • @RANGE (“January”, “December”);

Or they can be two compound members (double dimension):

  • @RANGE («2017» -> «January», «2018» -> «December»);

Both members have to meet the following conditions:

  • Both must be simple or both compound, what cannot be is one simple and the other compound.
  • Both must belong to the same level: for example, @RANGE («January», «December») is valid but @RANGE («January», «1T») would NOT be valid.

If the members are composed, both must have the same order in their dimensions: for example, @RANGE («2017» -> «January», «2018» -> «December») is valid but @RANGE («2017 ”->“ January ”,“ December ”->” 2018 ”) would NOT be valid.

The order must be logical: for example, @RANGE («January», «December») is valid but @RANGE («December», «January») would NOT be valid.

This function can be used as a parameter to another function that requires a list of members.

Let’s see an example:

Español

Esta función devuelve una lista con los miembros existentes en el outline entre dos miembros determinados (estos dos miembros también quedan incluidos en la respuesta).

Su estructura consta de dos partes:

@RANGE(Parte A, Parte B);

“Parte A” y “Parte B”:  son los dos miembros que fijan el límite inicial y el límite final del rango seleccionado por la función.

Estos miembros pueden ser dos miembros simples:

  • @RANGE(“Enero”, “Diciembre”);

O pueden ser dos miembros compuestos (doble dimensión):

  • @RANGE(“2017”->“Enero”, “2018”-> “Diciembre”);

Ambos miembros tienen que cumplir las siguientes condiciones:

  • Los dos deben ser simples o los dos compuestos, lo que no puede ser es uno de un tipo y otro de otro.
  • Los dos deben pertenecer al mismo nivel: por ejemplo, es válido @RANGE(“Enero”, “Diciembre”) pero NO sería válido @RANGE(“Enero”, “1T”).
  • Si los miembros son compuestos ambos deben tener el mismo orden en sus dimensiones: por ejemplo es válido @RANGE(“2017”->“Enero”, “2018”-> “Diciembre”) pero no sería válido @RANGE(“2017”->“Enero”, “Diciembre”->”2018”)
  • El orden debe ser lógico: por ejemplo, es válido @RANGE(“Enero”, “Diciembre”) pero NO sería válido @RANGE(“Diciembre”, “Enero”).

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

Veamos un ejemplo:

Anuncio publicitario