CONCAT

English (Español a continuación)

This function allows to concatenate strings.

Structure:

  • Concat(String1, String2,…)

More than two strings can be concatenated.

Examples:

  • Concat(“EUR”,”0001”) = “EUR0001”
  • Concat(“EUR”,”0001”,”LTD”) = “EUR0001LTD”

The strings must be between » » unless they are the result of a function.

  • Concat(“EUR”,Right(”XXX0001”,4)) = “EUR0001”

The “Concat” function returns a string of characters but to identify this result as the name of an outline member it must be included within the “StrToMbr” function:

Example:

  • StrToMbr(Concat(“EUR”,”0001”))

The “Concat” function can be used within a conditional structure.

Let’s see an example: Considering the following dimension «Product»:

We calculate the sales target for the year 2022 by including the following formula in the member “Obj_2022” (from the dynamic dimension “Years”):

  • Case
    • When IS (Product.CurrentMember, StrToMbr(Concat(“PDT”,Right(Product.CurrentMember.member_name,4)))) then 100
    • When IS (Product.CurrentMember, StrToMbr(Concat(“MRK”,Right(Product.CurrentMember.member_name,4)))) then 150
    • When IS (Product.CurrentMember, StrToMbr(Concat(“ZEC”,Right(Product.CurrentMember.member_name,4)))) then 210
  • End

Obtaining the following result:

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

Español

Esta función permite concatenar cadenas de caracteres.

Estructura:

  • Concat(String1, String2,…)

Se pueden concatenar más de 2 cadenas de caracteres.

Ejemplos:

  • Concat(“EUR”,”0001”) = “EUR0001”
  • Concat(“EUR”,”0001”,”LTD”) = “EUR0001LTD”

Las cadenas de caracteres tienen que ir entre “ “ salvo que sean el resultado de una función.

  • Concat(“EUR”,Right(”XXX0001”,4)) = “EUR0001”

La función “Concat” devuelve una cadena de caracteres pero para que Essbase identifique el resultado como el nombre de un miembro del outline hay que incluirla dentro de la función “StrToMbr”:

Ejemplo:

  • StrToMbr(Concat(“EUR”,”0001”))

La función “Concat”se puede utilizar dentro de una estructura condicional.

Veamos un ejemplo: Supongamos la siguiente dimensión “Producto”:

Calculamos el objetivo de ventas del año 2022 incluyendo la siguiente fórmula en el miembro “Obj_2022” (de la dimensión dinámica “Años”):

  • Case
    • When IS (Producto.CurrentMember, StrToMbr(Concat(“PDT”,Right(Producto.CurrentMember.member_name,4)))) then 100
    • When IS (Producto.CurrentMember, StrToMbr(Concat(“MRK”,Right(Producto.CurrentMember.member_name,4)))) then 150
    • When IS (Producto.CurrentMember, StrToMbr(Concat(“ZEC”,Right(Producto.CurrentMember.member_name,4)))) then 210
  • End

Obteniendo el siguiente resultado:

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

Anuncio publicitario