@ISGEN / @ISLEV

English (Español a continuación)

It is a Boolean function that returns «True», if the calculated member fulfills the function’s argument, or «False» otherwise.

Its structures consist of two parts:

@ISGEN (Part A, Part B);

@ISLEV (Part A, Part B);

  • Part A: Collect the dimension.
  • Part B: Collect the generation (the level), either indicating its number or indicating its name.

The generation number is positive while the level number is 0 or negative.

If the calculated member, in the dimension calculated in the function, belongs to the specified generation (level), the function returns «True»; if it is not, it returns «False».

Examples of these functions:

  • @ISGEN (“Markets”, 2);
  • @ISLEV (“Markets”, – 1);

In the first case it will return true if the calculated member in the “Market” dimension belongs to the 2nd generation, while in the second case it will return true if the calculated member belongs to the 1st level in that dimension.

These functions are usually used within an «IF» structure:

  • IF (@ISGEN (“Markets”, 3))
  • Sales = 50;
  • ENDIF

This function applied to the following outline would result in:

The following example:

  • IF (@ISLEV (“Markets”, 0))
  • Sales = 50;
  • ENDIF

It would result in:

Español

Es una función booleana que devuelve “Verdadero”, si el miembro calculado cumple el argumento de la función, o “Falso”, en caso contrario.

Sus estructuras constan de dos partes:

  • @ISGEN(Parte A, Parte B);
  • @ISLEV(Parte A, Parte B);

Parte A: Recoge la dimensión.

Parte B: Recoge la generación (el nivel), bien indicando su número o bien indicando su nombre.

  • El número de la generación es positivo mientras que el número del nivel es 0 o negativo.

Si el miembro calculado, en la dimensión recogida en la función, pertenece a la generación (nivel) especificada la función devuelve “Verdadero”; si no lo es devuelve “Falso”.

Ejemplos de estas funciones:

  • @ISGEN(“Mercados”,2);
  • @ISLEV(“Mercados”,-1);

En el primer caso devolverá verdadero si el miembro calculado en la dimensión “Mercado” pertenece a la generación 2ª, mientras que en el segundo caso devolverá verdadero si el miembro calculado pertenece al nivel 1º en dicha dimensión.

Estas funciones se suelen utilizar dentro de una estructura “IF”:

IF(@ISGEN(“Mercados”,3))

Ventas = 50;

ENDIF

Esta función aplicada al siguiente outline daría como resultado:

El siguiente ejemplo:

IF(@ISLEV(“Mercados”,0))

Ventas = 50;

ENDIF

Daría como resultado:

Anuncio publicitario