cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to customize the scale unit of a measure

kaori_oiwa
Explorer
2,275

In Analytic Applications, I want to be able to change the scale of the measure to the unit of "ten thousand" and "one hundred thousand".

Is it possible to control it with a script?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member

var Scaling = RadioButtonGroup_1.getSelectedKey();

if(Scaling==="k"){

Chart_1.getNumberFormat().setScaleUnit(NumberFormatScaleUnit.Thousand,Feed.ValueAxis);

Table_1.getNumberFormat().setScaleUnit(NumberFormatScaleUnit.Thousand);

}

else if(Scaling==="m"){

Chart_1.getNumberFormat().setScaleUnit(NumberFormatScaleUnit.Million,Feed.ValueAxis);

Table_1.getNumberFormat().setScaleUnit(NumberFormatScaleUnit.Million);

}

else if(Scaling==="b"){

Chart_1.getNumberFormat().setScaleUnit(NumberFormatScaleUnit.Billion,Feed.ValueAxis);

Table_1.getNumberFormat().setScaleUnit(NumberFormatScaleUnit.Billion);

}

philippmu25
Explorer
0 Likes

Is it possible that the script no longer works for tables?

For a few days now I've had the problem that the scaling of tables no longer changes. It still works problem-free with charts.

alexusa
Newcomer
This was broken in the Q1 2025. A patch was just released this past week. It now works with tables again
miguelsanchez87
Explorer
0 Likes

The code shared is working for me. Is it possible to do the same for Geomaps? I don't see the getNumberFormat function available there. Any workaround?