Symptom
You have a Story and it has a filter which is achieved by script :setDimensionFilters().
When applying filter , it takes long time.
Environment
SAP Analytics Cloud 1.0;
Reproducing the Issue
- Login to the tenant.
- Open the story.
- Select "Filter" button.
- Select a value for the filter and apply it.
- It takes long time to finish loading.
Cause
The Story need to be optimized for performance.
Resolution
To enhance performance for interactions, consider the following strategies:
-
Use
MemberInfoInstead of Strings: This can optimize operations by reducing string-related overhead. -
Optimize Filter Setting:
- Replace
setDimensionFilters()in most widgets withInputControl.getInputControlDataSource().setSelectedMembers(). This approach is efficient, especially when using linked dimensions for dimensions that share the same members. - This optimization is also verified to work with live models. To reset the filter, you can call
InputControl.getInputControlDataSource().setSelectedMembers().
- Replace
Keywords
KBA , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , Problem
Product
SAP Analytics Cloud 1.0
SAP Knowledge Base Article - Public