cancel
Showing results for 
Search instead for 
Did you mean: 

Two Condition in Conversion File for single dimension

anukul_giradkar3
Explorer
0 Kudos

Hello All,

Need your help for Conversion File.

Can we maintain multiple conditions for single dimension in conversion file?

For Example:

For Cost Center dimension can we assign the prefix as well as change from '-' to '_'?

External               Internal                                         Formula

*-*                         js:%external%split("-").join("_")

*                            CC_*

I have maintained the following conversion file whereas after the completion of DMP, the first condition was executed and not with the second condition. Please advice on how we can achieve the both condition through conversion file.

Thank You.

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

It's absolutely easy to combine both in the same line!

External   Internal

*               js:"CC_"+%external%.toString().replace(/-/g,"_")

Please, read some javascript tutorial!

Vadim

Answers (0)