SAC Calculations: Calculated & Restricted Measures
As of 2026-11-22
Four calculation primitives: calculated measure, restricted measure, calculated dimension, and variable with input control. Senior placement rule: a calculation used by two or more stories, or governance-critical, moves to the Datasphere analytic model for data access controls (DAC), glossary and version history; a story-local calculation can stay in SAC. A heavy calculated dimension over millions of rows renders slowly; pre-compute it in Datasphere. SAC calculations lack calculation-level lineage and transport, so governance-critical logic belongs upstream.
What you will learn
- Choose the right calculation primitive (calculated measure, restricted measure, calculated dimension, variable/input) for a given story requirement.
- Apply the senior placement rule: push any calc reused by two or more stories, or governance-critical, up to a Datasphere analytic model for DAC, glossary, and version control.
- Diagnose and fix slow story rendering caused by heavy calculated dimensions on large row volumes by pre-computing in Datasphere.
- Run a cross-story calc-duplication audit and reduce drift risk by cataloguing every SAC-local calculation.
SAC calculations = derived measures + formulas + restricted measures + filtered dimensions defined in SAC, on top of an analytic model. They're the right place for STORY-LEVEL business logic; the wrong place for ENTERPRISE-LEVEL business logic. The senior decision: where does this calculation belong — in the Datasphere analytic model (consumed by all stories), or in this one story? SAC's own calculation editor is documented in SAP Help — SAP Analytics Cloud.
Four calculation primitives in SAC
- Calculated measure — formula combining existing measures (e.g.
margin_pct = (revenue - cost) / revenue). - Restricted measure — measure with embedded filter (e.g.
revenue eu = revenue WHERE country IN (EU members)). - Calculated dimension — derived dimension (e.g.
revenue_band = CASE WHEN revenue > 1M THEN 'large' ELSE 'small'). - Variable + input control — story-time parameter (e.g. fiscal year selector that drives all widgets).
Prerequisites
- Intermediate hands-on experience on SAP analytics projects
- Review core concepts first: C019, C008, C020
Outcomes
- Audit a realistic estate — a retail group with 40+ SAC stories and three years of ad-hoc calculations — and plan a six-week refactoring.
- Place each calculation with the four questions (reuse, who quotes it, data the story cannot see, who maintains it) and justify story-local versus Datasphere analytic model.
- Prove a ratio is aggregated correctly by recomputing it on totals and checking two hierarchy levels; model headcount and stock as non-cumulative measures.
- Track progress with the cross-story duplication rate (target below 5 %, red flag above 20 %) and leave a calc catalogue a client analyst can maintain.
Full module with the Consultant plan — €19.90/month. The full module adds: the decision framework · the end-to-end scenario walkthrough · the KPI scorecard · the anti-patterns · the code blocks · the knowledge check · the diagrams.
Open missions
58 live roles and contracts in SAP Analytics Cloud right now — see the SAP Analytics Cloud missions · freelance SAP contracts.