English (Español a continuación)
I.- Selection using attributes
In the Report Script you can select members using attributes. 2 commands can be used:
- <ATTRIBUTE
- <WITHATTR
The structure of the first command is:
- <ATTRIBUTE “Member attribute”
Selects all members of the base dimension that have that attribute associated with them.
For example:
- <ATTRIBUTE Large
Select all those members that have the attribute “Large” associated with them.
If the selected attribute is not level 0, this command selects all the members of the base dimension that have associated a child attribute of the selected attribute.
The structure of the second command is:
- <WITHATTR(Attribute dimension, Operator, Value)
Being:
Operator: A comparison operator (must be enclosed in quotes).
- >
- >=
- <
- <=
- ==
- or !=
- IN
Selects all those members of the base dimension (associated to that attribute dimension) whose attribute meets the established condition.
For example:
- <WITHATTR(Size, “>”, 100000)
Selects all those members of the base dimension «Markets» (associated to the attribute dimension «Size») that have an associated size attribute greater than 100000.
II.- Selection using UDAS
Members can be selected using UDAs with the command:
- <UDA(Name of the dimension, “Assigned UDA”)
For example:
- <UDA(Markets, “Large”)
Select those members of the “Markets” dimension that have been assigned the UDA “Large”.
This command can be used individually or within a LINK structure:
- <LINK(<DESCENDANTS(Europe) AND <UDA(Markets, “Large”))
With the <UDA command, shared members (whose original members have the indicated UDA assigned) are not selected. If we also want to include the shared members, we must use the command:
- <SUDA(Name of the dimension, “Assigned UDA”)
Español
I.- Selección utilizando atributos
En el Report Script se pueden seleccionar miembros utilizando atributos. Se pueden utilizar 2 comandos:
- <ATTRIBUTE
- <WITHATTR
La estructura del primer comando es:
- <ATTRIBUTE “Miembro atributo”
Selecciona todos los miembros de la dimensión base que tienen asociados ese atributo.
Por ejemplo:
- <ATTRIBUTE Grande
Selecciona todos aquellos miembros que tienen asociados el atributo “Grande”.
Si el atributo seleccionado no es nivel 0, este comando selecciona todos los miembros de la dimensión base que tengan asociado un atributo hijo del atributo seleccionado.
La estructura del segundo comando es:
- <WITHATTR(Dimensión atributo, Operador, Valor)
Siendo:
Operador: un operador de comparación (debe ir entre comillas).
- >
- >=
- <
- <=
- ==
- <> o !=
- IN
Selecciona todos aquellos miembros de la dimensión base (asociada a esa dimensión atributo) cuyo atributo cumple la condición establecida.
Por ejemplo:
- <WITHATTR(Tamaño, “>”, 100000)
Selecciona todos aquellos miembros de la dimensión base “Mercados” (asociada a la dimensión atributo “Tamaño”) que tienen asociados un atributo de tamaño mayor que 100000.
II.- Selección utilizando UDAS
Se pueden seleccionar datos utilizando UDAs con el comando:
- <UDA(Nombre de la dimensión, “UDA asignado”)
Por ejemplo:
- <UDA(Mercados, “Grande”)
Selecciona aquellos miembros de la dimensión “Mercados” que tienen asignados el UDA “Grande”.
Este comando se puede utilizar individualmente o dentro de una estructura LINK:
- <LINK(<DESCENDANTS(Europa) AND <UDA(Mercados, “Grande”))
Con el comando <UDA no se seleccionan los miembros compartidos (cuyos miembros originales tienen asignados el UDA indicado). Si queremos incluir también los miembros compartidos hay que utilizar el comando:
- <SUDA(Nombre de la dimensión, “UDA asignado”)