Skip to Content
avatar image
Former Member

Technical Names of Measures / Dimensions in a Universe

Hi,

The source is a universe

I am implementing a dashboard in design studio. I need to dynamically set the measures used a chart via a script. CHART.setDataSelection

({"(MEASURES_DIMENSION)":["XYZ","ABC"]});

XYZ and ABC are the measures. Is there a way I can find this information in the Universe in a single view? At the moment I have to manually select the measure in the chart data selection and then press ok to view the script generated to understand the technical name.

I have the same problem when finding out the technical names of the dimensions - I have to edit initial view and I can see the technical names of the dimensions.

Cheers,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 03, 2016 at 04:53 PM

    Hi leo,

    This code will help you to dynamically make data selection.

    you can specify if condition as needed to create required measure list.

    var measures = DS_1.getMembers(DS_1.getMeasuresDimension(), 100);

    var measures_needed = "";

    measures.forEach(function(element, index) {

    if(Condition)

    {

    measures_needed = measures_needed + element.internalKey + ";" ;

    }

    });

    var measure_array = measures_needed.split(";");

    CHART_1.setDataSelection({"(MEASURES_DIMENSION)" : measure_array});

    Thanks,

    Poovarasan

    Add comment
    10|10000 characters needed characters exceeded