@ATTRIBUTE

English (Español a continuación)

This function allows to select all those members of a dimension base that share the same attribute. Its structure consists of a single parameter:

  • @ATTRIBUTE (A)

Part «A»: is the name / alias of a specific attribute

This function selects all those members of the base dimension that share that attribute.

  • If the attribute included in the function is not level 0, it returns all those members of the base dimension that have assigned some attribute level 0 descendants of the one we have included in the function.

This function can be used within other functions that require selecting a list of members.

For instance:

  • FIX (@ATRIBUTE (“Large”))
  • IF (@ISMBR (@ATRIBUTE (“Large”)))

Let’s see an example: let’s consider a travel agency:

A discount of 100 euros is applied to destinations that are in promotion:

  • FIX (@ATTRIBUTE (Promotion_True))
  • Discount = 100;
  • ENDFIX

ATTENTION

  • With attributes dimensions type boolean the name of the attribute must include before the name of the dimension followed by an underscore.
  • With the rest of the attributes dimensions only the name of the attribute.

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

Español

Esta función permite seleccionar todos aquellos miembros de una dimensión base que comparten el mismo atributo. Su estructura consta de un solo parámetro:

  • @ATTRIBUTE(A)

Parte “A”: es el nombre / alias de un atributo concreto

Esta función selecciona todos aquellos miembros de la dimensión base que comparten ese atributo.

  • Si el atributo incluido en la función no es nivel 0 de la dimensión atributo, devuelve todos aquellos miembros de la dimensión base que tienen asignados algún atributo nivel 0 dependiente del que hemos incluido en la función.

Esta función se puede utilizar dentro de otras funciones que requieran seleccionar una lista de miembros.

Por ejemplo:

  • FIX(@ATRIBUTE(“Grande”))
  • IF(@ISMBR(@ATRIBUTE(“Grande”)))

Veamos un ejemplo: supongamos una agencia de viajes:

Se aplica un descuento de 100 euros a los destinos que están en promoción:

  • FIX(@ATTRIBUTE(Promoción_True))
  • Descuento = 100;
  • ENDFIX

ATENCIÓN

  • En las dimensiones atributos de tipo booleana delante del atributo hay que poner el nombre de la dimensión seguido de guion bajo.
  • En el resto de dimensiones atributos tan sólo el atributo.

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

Anuncio publicitario