English (Español a continuación)
a) CONTAINS
It is a conditional formula that returns “True” if a member is part of a given group.
Its structure:
- Contains(«Member», «Group»)
Let’s see an example:
Considering the dimension «Markets»:

This formula:
- Contains([Markets].currentmember,{DESCENDANTS(“Southern Spain”)})
Returns «True»:

This function can be used in a conditional structure.
Example:
- IIF(Contains([Markets].currentmember,{DESCENDANTS([“Southern Spain”])}), Sales * 1.5, Sales * 1.3)
Calculate the value of “Obj_2022”:
- Descendants of “España Sur” (included): Multiplying their sales by 1.5
- Other members of the «Markets» dimension: Multiplying their sales by 1.3
A structure similar to the one above:
- Case
- When Contains([Markets].currentmember,{DESCENDANTS([“Southern Spain”])}) then Sales * 1.5
- Else Sales * 1.3
- End
b) EXCEPT
This function excludes from group 1 members of group 2.
Its structure:
- Except(“Group 1”, “Group 2”,[ALL])
ALL: It is optional; does not exclude duplicate members from group 1, even if they are in group 2.
Let’s see an example: Considering the previous outline:
- Except({DESCENDANTS([“Spain”])},{DESCENDANTS([“Southern Spain”])})
This function excludes from the descendants of “Spain” the descendants of “Southern Spain”:

Let’s see an example of using this formula in a conditional structure:
- IIF(Contains([Markets].currentmember, Except({DESCENDANTS([“Spain”])},{DESCENDANTS([“Southern Spain”])})), Sales * 1.5, Sales * 1.3)
Calculate the value of “Obj_2022”:
- Descendants of “Spain” (excluding the descendants of “España Sur”): Multiplying their sales by 1.5
- Other members of the «Markets» dimension: Multiplying their sales by 1.3
Any questions please send an email to: essbaseeasy@gmail.com
Español
a) CONTAINS
Es una fórmula condicional que devuelve “True” si un miembro forma parte de un grupo determinado.
Su estructura:
- Contains(“Miembro”, “Grupo”)
Veamos un ejemplo:
Partiendo de la siguiente dimensión “Mercados”:

La fórmula:
- Contains([Mercados].currentmember,{DESCENDANTS(“España Sur”)})
Devuelve “True”:

Esta función se puede utilizar dentro de una estructura condicional.
Ejemplo:
- IIF(Contains([Mercados].currentmember,{DESCENDANTS([“España Sur”])}), Ventas * 1.5, Ventas * 1.3)
Calcula el valor del “Obj_2022”:
- Descendientes de “España Sur” (incluido): Multiplicando sus ventas por 1,5
- Resto de miembros de la dimensión “Mercados”: Multiplicando sus ventas por 1,3
Una estructura similar a la anterior:
- Case
- When Contains([Mercados].currentmember,{DESCENDANTS([“España Sur”])}) then Ventas * 1.5
- Else Ventas * 1.3
- End
b) EXCEPT
Esta función excluye del grupo 1 a los miembros del grupo 2.
Su estructura:
- Except(“Grupo 1”,”Grupo 2”,[ALL])
ALL: Es opcional; no excluye del grupo 1 a los miembros duplicados, aunque figuren en el grupo 2.
Veamos un ejemplo: Partiendo del outline anterior:
- Except({DESCENDANTS([“España”])},{DESCENDANTS([“España Sur”])})
Esta función excluye de los descendientes de “España” a los descendientes de “España Sur”:

Veamos un ejemplo de uso de esta fórmula en una estructura condicional:
- IIF(Contains([Mercados].currentmember, Except({DESCENDANTS([“España”])},{DESCENDANTS([“España Sur”])})), Ventas * 1.5, Ventas * 1.3)
Calcula el valor del “Obj_2022”:
- Descendientes de “España” (excluyendo a los descendientes de “España Sur”): Multiplicando sus ventas por 1,5
- Resto de miembros de la dimensión “Mercados”: Multiplicando sus ventas por 1,3
Cualquier consulta envía, por favor, un correo a: essbaseeasy@gmail.com