Skip to Content
0
Jul 22 at 10:58 AM

How to get a rawValue of a Chart into a Script Variables Default Value?

146 Views

Hi,

how can I get a ResultSet/rawValue of a Numeric Point Chart into my Script Variables Default Value?

With this code I can set the value of my Script Variable - but I need the value per default on Initialization because I use this Script Variable in a Calculated Measure and this Measure cant be caluclated afterwards if I am right.

var test = Chart_1.getDataSource().getResultSet({"@MeasureDimension": "test"});
var test_raw = test[0]['@MeasureDimension'].rawValue;
ScriptVariable_1 = ConvertUtils.stringToNumber(test_raw);

Attachments

4qfiw.png (22.1 kB)