Symptom
- getNumberFormat().setDecimalPlaces() API is not behaving as expected for Bar/Column Chart.
- For setDecimalPlaces(1), the value is still displaying with 0 decimal place in chart.
Environment
SAP Analytics Cloud 1.0
Reproducing the Issue
- Log on to SAC tenant.
- Create an Analytics Application use the API getNumberFormat().setDecimalPlaces().
- For setDecimalPlaces(1), the value is still displaying with 0 decimal place in chart.
Cause
The number of decimal places setup by API works in conjunction with the measure definition in BEx: Display --> 'Number of Decimal Places'.
You can drive number of decimal places via API as long as the number of decimal places does not exceed the number defined for the measure in BEx query.
Resolution
- Set the decimal places for the measure in BEX :Display --> 'Number of Decimal Places'.
- The decimal places set in the API should not exceed the number defined for the measure in BEx query.
Keywords
KBA , LOD-ANA-AD , Analytics Designer , Problem
Product
SAP Analytics Cloud 1.0