Skip to Content
0

Technical Names of Measures / Dimensions in a Universe

Nov 01, 2016 at 01:58 PM

75

avatar image

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,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Poovarasan Boopalan Nov 03, 2016 at 04:53 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded