Symptom
- In an SAP Analytics Cloud (SAC) story, when a Restricted Account (Selection) is used together with a model-level calculated measure, the calculation result does not reflect the restricted selection defined in the story.
- Instead, the value is computed based solely on the logic defined in the model-level formula.
Environment
-
SAP Analytics Cloud (Enterprise)
Reproducing the Issue
- Create a model-level calculated measure named Model_IF_Measure in the Universal Account Model with the following formula:
IF([Budget] > 0, [Budget] * 1.1, 0) - Create a Story using this model and insert a Table or Chart.
- Define a Restricted Account (Selection) at the story level:
|
Setting |
Value |
|
Account |
Restricted_Account |
|
Type |
Restricted Account (Selection) |
|
Definition |
Sales filtered for Product A only |
- Add the model-level calculated measure Model_IF_Measure to the same table or chart.
Sample Data
|
Account |
Product A |
Product B |
|
Sales |
400 |
600 |
|
Budget |
500 |
700 |
Story Result
- Restricted_Account (Sales – Product A)
-
- User expects: 400
- Actual result returned by SAC: 550
Cause
-
This behavior is by design in SAP Analytics Cloud.
Calculation Precedence in SAC
Object Type
Defined At
Behavior
Restricted Account
Story level
Acts as a selection that filters base account data
Model_IF_Measure
Model level
Executes its own formula logic independently
Model-level calculations always take precedence over story-level selection-based calculations for Universal Account Model
- At the intersection of Restricted_Account and Model_IF_Measure:
-
- The formula
IF([Budget] > 0, [Budget] * 1.1, 0)
is evaluated using Budget = 500 - The story-level restriction to Sales – Product A (400) is not applied to the formula logic
- Result:
IF(500 > 0, 500 × 1.1, 0) = 550
- The formula
Resolution
-
This is the expected and intended system behaviour.
- A Restricted Account (Selection) cannot override or influence the logic of a model-level calculated measure
- Same concept applies within the story between primary vs secondary calculations(Cross calculation) for non-Universal Account Models.
See Also
- Refer to: 3648182 - Model calculated measure with the formula RESTRICTED not displaying in story in sac.
- Refer to: 3425693 - sac - table using restricted measures and calculated accounts shows different totals when adding dimension to columns.
- Refer to: 3702507 - Known limitations and by-design behaviors of calculation features in sac.
Keywords
SAP, SAC, restricted account, base account, formula-based measure, sac story, account properties, calculation discrepancy, mismatch, sac patch issue, account ID, profit center, sac calculation engine, dimension values, sac story filter , KBA , LOD-ANA-DES-CAL , SAC Story Calculations , Problem
SAP Knowledge Base Article - Public