English (Español a continuación)
It is a «string» type function that allows joining two strings.
Its structure consists of 2 parts:
@CalcMgrConcat (A, B)
- «Part A»: Text 1
- «Part B»: Text 2
For example:
- @CalcMgrConcat (“PROD”, ”XX”) = “PRODXX”
This function can be used within a calculation. Let’s see an example:
Let’s suppose that we have in the database the dimension «Time» with the following members:
- Jan
- Feb
- Mar
- Apr
…
On the other hand, a dimension «Offer» with specific campaigns for each month, with the following members:
- Ofer_Jan
- Ofer_Feb
- Ofer_Mar
- Ofer_Apr
- …
This function will allow us to select the specific campaign for each month:
- @CalcMgrConcat (“Ofer _”, @ CURRMBR (“Time”))
When the current month is January:
- @CURRMBR (“Time”) = Jan
And the above function gives us as a result:
- @CalcMgrConcat (“Ofer _”, ”Jan”) = “Ofer_Jan”
Español
Es una función del tipo “string” que permite unir dos cadenas de caracteres.
Su estructura consta de 2 partes:
@CalcMgrConcat(A,B)
- “Parte A”: Texto 1
- “Parte B”: Texto 2
Por ejemplo:
- @CalcMgrConcat(“PROD”,”XX”) = “PRODXX”
Esta función se puede utilizar dentro de un cálculo.
Veamos un ejemplo:
Supongamos que tenemos en la base de datos la dimensión “Tiempo” con los siguientes miembros:
- Ene
- Feb
- Mar
- Abr
- …
Por otra parte, una dimensión “Oferta” con campañas específicas para cada mes, con los siguientes miembros:
- Ofer_Ene
- Ofer_Feb
- Ofer_Mar
- Ofer_Abr
- …
Esta función nos va a permitir seleccionar la campaña específica para cada mes:
- @CalcMgrConcat(“Ofer_”,@CURRMBR(“Tiempo”))
Cuando el mes actual sea Enero:
- @CURRMBR(“Tiempo”) = Ene
Y la función anterior nos da como resultado:
- @CalcMgrConcat(“Ofer_”,”Ene”) = “Ofer_Ene”