SAP Knowledge Base Article - Public

3147723 - Number scale unit for tooltip measures cannot be changed by script

Symptom

In an Analytics Application, you use number scale unit for charts by toggle which allows to switch between millions and thousands. This switch works correctly for all measures except tooltip measures. 

Below are examples of the functions :

Chart_D_Delta_1.getNumberFormat().setScaleUnit(NumberFormatScaleUnit.Thousand,Feed.ValueAxis) 

together with

Chart_D_Delta_1.getNumberFormat().setScaleUnit(NumberFormatScaleUnit.Thousand,Feed.TooltipValueAxis)

Environment

Product version: SAP Analytics Cloud 1.0

Reproducing the Issue

  1. Create the scripts as below:

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

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

        2.When executing the Application in Run time, tooltips remain unchanged, although main chart value is changed correctly. 

Cause

It works as designed: the number format API can only apply on those measures that appear on Chart->Styling Panel->Number Format->Measure Selection, measures on tooltip are not included.

Resolution

Please submit this as a software enhancement request. Refer to the KB 2424376 - "How do you create an enhancement request for SAP Analytics Cloud?".

Keywords

KBA , LOD-ANA-AD-FRA , Analytics Designer Framework , Problem

Product

SAP Analytics Cloud 1.0