Calculated Measures, Restricted Measures, and Currency Conversion in SAC Models (Part 3)
Preview · a free account unlocks the full lesson
Learn how to extend an SAC model's analytical power using calculated measures, restricted measures, and currency conversion so business users get correct, reusable metrics without duplicating logic in every story.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Once a base SAC model exists with dimensions and account/measure structures, most real projects immediately need derived metrics that are not present in the source data: margin percentages, variance to plan, restricted sums filtered by a dimension member, or values converted to a reporting currency. SAC models let you define these at the model level so every story, widget, and planning form built on that model reuses the same logic instead of consultants recreating formulas in each story, which is a common source of inconsistent numbers across dashboards.
Calculated measures are formulas built from existing measures (or account members in an account-based model) using arithmetic operators, aggregation functions, and conditional logic. They execute at query time against the model's data source, meaning for live models the calculation may be pushed down to the source system or evaluated in SAC depending on the connection type, while for imported (acquired) models the calculation runs against the in-memory SAC dataset.
This distinction matters for performance: a calculated measure with heavy conditional logic on a large imported model can slow story rendering, whereas the same logic on a live HANA connection may be optimized by the source engine.
Restricted measures apply a filter to a base measure so it only aggregates over specific dimension members, for example 'Sales - Region = APAC' as a standalone reusable metric. This differs from simply filtering a chart because the restricted measure remains a fixed, named metric that can be compared side-by-side with unrestricted totals in the same table or chart, which is essential for variance and mix analysis.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.