Symptom
- Top N Chart functionality does not work properly when BEx query has Reverse Sign enabled
- When Reverse Sign is enabled, Top N shows Bottom N, Bottom N shows Top N. The behavior is completely reversed
Environment
- SAP Analytics Cloud 2024.8
Reproducing the Issue
- Log into Tenant
- Navigate to the story link:
- Click on the chart, go into chart options by select the three dots
- Hover over "rank" and expand the options
- Select Top N Options
- Ensure All Dimensions are selected
- Select "top" for mode and "2" for Value
- See that the bottom 2 values appears as opposed to the top 2 values that are needed
- Change the rank to top 2 values and we see the opposite, where the top 2 values are appearing instead of the bottom 2
Cause
- The issue is due to a common limitation in OLAP engine.
Resolution
As a workaround, create a formula and multiply the original key figure with -1 in query definition as per SAP Note 2028029, That is: define F=key figure * (-1), it has the same values as "reverse sign" is used. Then define TOP N on formula F in SAC.
See Also
- BW Sign Reversal (SAP Library - Business Intelligence)
- 2877453- reverse sign is ignored in TOP N on SAC
- 2028029- Condition doesn't Work with Reverse Sign
Keywords
SAC, Story, Ranking, Top N, Bottom N, Chart , KBA , LOD-ANA-DES , Story Design & Visualizations , LOD-ANA-LDC-BW , SAC Live Data Connection BW , Problem
Product
SAP Analytics Cloud 1.0
SAP Knowledge Base Article - Public