Skip to Content

Two Condition in Conversion File for single dimension

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 21, 2015 at 11:41 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.