SELECTION OF SPECIFIC MEMBERS / SELECCIÓN DE MIEMBROS ESPECÍFICOS

English (Español a continuación)

Next, we analyze different functions to select specific members to which to apply a certain condition.

  • In the following examples we will see the formula to include in the member “Obj_2022” (of the dimension “Years”) to calculate its value, applying specific conditions to certain members.

a) Selection of one member

Is: Selects the specified member.

Structure:

  • Is(Member 1, Member 2)

Select Member 1 if it matches Member 2.

Example:

  • IIF(Is([Markets].currentmember,[Germany]), Sales * 1.5, Sales * 1.3)

Calculate the value of the member “Obj_2022”:

  • For the member «Germany» of the «Markets» dimension, multiplying their sales by 1.5
  • For the rest of the members of the «Markets» dimension, multiplying their sales by 1.3

We can specify several dimensions:

Example:

  • IIF(Is([Markets].currentmember,[Germany]) AND Is([Month].currentmember,[December]) AND Is([Products].currentmember,[Printers]), Sales * 1.5, Sales * 1.3)

Calculate the value of the member “Obj_2022”:

  • For the crossing of the member «Germany» of the «Markets» dimension, with the member «December» of the «Month» dimension and with the member «Printers» of the «Products» dimension, multiplying their sales by 1.5
  • For the rest of the members, multiplying their sales by 1.3

b) Selection of several members

To select a group of members of a given dimension, the following structure is used:

  • Count(Intersect({Member 1, Member 2, …, Member “n”},{[Dimension].currentmember})) = 1

Example:

  • IIF(Count(Intersect({Germany, Italy, France},{[Markets].currentmember})) = 1, Sales * 1.5, Sales * 1.3)

Calculate the value of the member “Obj_2022”:

  • For the members «Germany», «Italy» and «France» of the «Markets» dimension, multiplying their sales by 1.5
  • For the rest of the members of the «Markets» dimension, multiplying their sales by 1.3

As in the previous case, we can specify several dimensions:

Example:

  • IIF(Count(Intersect({Germany, Italy, France},{[Markets].currentmember})) = 1 AND Count(Intersect({October, November, December},{[Month].currentmember})) = 1 AND Count(Intersect({Printers, Displays},{[Products].currentmember})), Sales * 1.5, Sales * 1.3)

Calculate the value of the member “Obj_2022”:

  • For the crossing of the members «Germany», «Italy» and «France» of the dimension «Markets», with the members «October», «November» and «December» of the dimension «Month», and with the members «Printers» and «Screens» of the «Products» dimension, multiplying their sales by 1.5
  • For the rest of the members, multiplying their sales by 1.3

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

Español

A continuación analizaremos distintas funciones para seleccionar miembros concretos a los que aplicar una condición determinada.

  • En los siguientes ejemplos veremos la fórmula a incluir en el miembro “Obj_2022” (de la dimensión “Años”) para calcular su valor, aplicando condiciones específicas a determinados miembros.

a) Selección de un miembro

Is: Selecciona el miembro especificado.

Estructura:

  • Is(Miembro 1, Miembro 2)

Selecciona el Miembro 1 si coincide con el Miembro 2.

Ejemplo:

  • IIF(Is([Mercados].currentmember,[Alemania]), Ventas * 1.5, Ventas * 1.3)

Calcula el importe del miembro “Obj_2022”:

  • Al miembro “Alemania” de la dimensión “Mercados”, multiplicando sus ventas por 1,5
  • Al resto de miembros de la dimensión “Mercados”, multiplicando sus ventas por 1,3

Podemos especificar varias dimensiones:

Ejemplo:

  • IIF(Is([Mercados].currentmember,[Alemania]) AND Is([Mes].currentmember,[Diciembre]) AND Is([Productos].currentmember,[Impresoras])  , Ventas * 1.5, Ventas * 1.3)

Calcula el importe del miembro “Obj_2022”:

  • Para el cruce del miembro “Alemania” de la dimensión “Mercados”, con el miembro “Diciembre” de la dimensión “Mes” y con el miembro “Impresoras” de la dimensión “Productos”, multiplicando sus ventas por 1,5
  • Para el resto de miembros, multiplicando sus ventas por 1,3

b) Selección de varios miembros

Para seleccionar un grupo de miembros de una determinada dimensión se utiliza la siguiente estructura:

  • Count(Intersect({Miembro 1, Miembro 2, …, Miembro “n”},{[Dimensión].currentmember})) = 1

Ejemplo:

  • IIF(Count(Intersect({Alemania, Italia, Francia},{[Mercados].currentmember})) = 1, Ventas * 1.5, Ventas * 1.3)

Calcula el importe del miembro “Obj_2022”:

  • A los miembros “Alemania”, “Italia” y “Francia” de la dimensión “Mercados”, multiplicando sus ventas por 1,5
  • Al resto de miembros de la dimensión “Mercados”, multiplicando sus ventas por 1,3

Al igual que en el caso anterior, podemos especificar varias dimensiones:

Ejemplo:

  • IIF(Count(Intersect({Alemania, Italia, Francia},{[Mercados].currentmember})) = 1 AND Count(Intersect({Octubre, Noviembre, Diciembre},{[Mes].currentmember})) = 1 AND  Count(Intersect({Impresoras, Pantallas},{[Productos].currentmember})), Ventas * 1.5, Ventas * 1.3)

Calcula el importe del miembro “Obj_2022”:

  • Para el cruce de los miembros “Alemania”, “Italia” y “Francia” de la dimensión “Mercados”, con los miembros “Octubre”, “Noviembre” y “Diciembre” de la dimensión “Mes”, y con los miembros “Impresoras” y “Pantallas” de la dimensión “Productos”, multiplicando sus ventas por 1,5
  • Para el resto de miembros, multiplicando sus ventas por 1,3

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

Anuncio publicitario