Join our Community in its new Home - The Datorama Trailblazer Community Group!

It's been an amazing 3 years coming together in this forum to collaborate, innovate, support, and inspire each other about our shared usage of Datorama. While this is not quite a goodbye, we are excited to announce that we are getting a fresh start in our new home within the Salesforce Trailblazer Community. We have a ton of fun new content planned and you may even see the revival of some of our most popular posts from the past few years.

We’ll be keeping this group around for a bit for you to peruse, but as of November 15, we will no longer be allowing new posts or comments. Be sure to join our new group at to keep the conversation going.

We can’t wait to see you there!

Iterating through an array in a calculated dimension


  • Hi @AntonioQ,

    The language used in Datorama is ENVEL. It is a hybrid, therefore, it recognizes multiple formats - HTML, JavaScript, etc. It does not adhere strictly to any other language.

    In order to create an array in Datorama, you need to used the SPLIT function.
    Here is a working example:

    var MBKs = ['A';'B';'C';'D'];
    var array1 = SPLIT(MBKs,';');

    if([Media_Buy_Key] == array1){
    'Group 1';
    }else if([Media_Buy_Key] == 'E' || [Media_Buy_Key] == 'F' || [Media_Buy_Key] == 'G' || [Media_Buy_Key] == 'H'){
    'Group 2';

    Let me know if you have further questions :)
Sign In or Register to comment.