Symptom
- Multiple Conditions are configured for a dimension filter in an SAP Analytics Cloud (SAC) story.
- The expectation is that all conditions will be applied together and only data matching all criteria will be returned.
- However, the story displays records that satisfy only one of the configured conditions, resulting in a broader set of results than expected.
Environment
SAP Analytics Cloud
Reproducing the Issue
- Log in to SAP Analytics Cloud.
- Open an existing story or create a new story based on a model.
- Add a table using a dimension that supports filtering.
- Open the dimension filter.
- Create multiple Include Conditions for the same dimension.
- Save and apply the filter.
- Refresh the story or table.
- Observe that records matching any of the configured conditions are returned.
- Review the results and note that the conditions are evaluated using OR logic, not AND logic.
Expected Result
Only records satisfying all configured conditions are returned.
Actual Result
Records satisfying any of the configured conditions are returned because multiple Story Filter conditions are evaluated using OR logic.
Workaround
Use an Advanced Filter if the requirement is to apply multiple conditions using AND logic and return only records that satisfy all specified criteria.
Cause
This behavior is expected.
When multiple Conditions (Include) are defined within a Story Filter, SAC evaluates them using OR logic. Likewise, multiple Restrictions (Exclude) are also evaluated using OR logic.
This means that a record is returned if it satisfies any one of the configured conditions, rather than all conditions simultaneously.
Example: Condition A OR Condition B.
Resolution
If the requirement is to return data only when all conditions are met, use an Advanced Filter instead of multiple Story Filter conditions.
Advanced Filters support AND logic, meaning every condition must be satisfied before a record is included in the result set.
Example: Condition A AND Condition B.
Only records that satisfy both conditions will be returned. Reference: https://help.sap.com/docs/SAP_ANALYTICS_CLOUD/00f68c2e08b941f081002fd3691d86a7/d0fbcdf2652e4d1485a6cabd4b9c6dd9.html.
See Also
- Refer to: 3200458 - Creating Support Users in SAP Analytics Cloud
- Help Guides:
Keywords
SAC, restricted measure, functional area filter, range filter, filter not respected, table shows unexpected values, story refresh, import model, story filter, measure filter issue, visualization filter, data range mismatch, story view, sap analytics cloud story , KBA , LOD-ANA-DES , Story Design & Visualizations , How To
SAP Knowledge Base Article - Public