ERPClimb logoERPClimb
SAC Models
SAC / Datasphereintermediate 8 min read

Calculated Measures, Restricted Measures, and Currency Conversion in SAC Models (Part 3)

Preview · a free account unlocks the full lesson

Key takeaway

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 sections

Visual overview

Calculated Measures, Restricted Measures, and Currency Conversion in SAC Models (Part 3) — learning sheetIn one line: 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.ERPClimb.com / SAC / LESSON 3/4 / LEARNING SHEETCalculated Measures, Restricted Measures, and CurrencyConversion in SAC Models (Part 3)1 · IN ONE LINELearn how to extend an SAC model's analytical power using calculated measures, restrictedmeasures, and currency conversion so business users get correct, reusable metrics withoutduplicating logic in every story.2 · KEY IDEAS EXPLAINED1Once a base SAC model exists with dimensions andaccount/measure structures, most real projectsimmediately need derived metrics that are notpresent in the source data: margin percentages,variance to plan, restricted sums filtered by adimension member, or values converted to a…2Calculated measures are formulas built fromexisting measures (or account members in anaccount-based model) using arithmetic operators,aggregation functions, and conditional logic. Theyexecute at query time against the model's datasource, meaning for live models the calculation…3Restricted measures apply a filter to a basemeasure so it only aggregates over specificdimension members, for example 'Sales - Region =APAC' as a standalone reusable metric. Thisdiffers from simply filtering a chart because therestricted measure remains a fixed, named metric…4Currency conversion in SAC models is configuredthrough a currency conversion setting tied to arate type and a target currency, using either aninternal SAC currency conversion table (built froma currency conversion model you create andpopulate) or rates coming from the connected…3 · DO · AVOIDBest practice!Common mistakeAlways add null/zero guards in calculatedmeasures involving division.Standardize currency conversion at the modellevel unless there is a clear, documented…Name calculated and restricted measuresclearly and consistently so story authors…✕Building a calculated measure without anull/zero guard, causing broken tiles or…✕Defining restricted measures with filters ondimension members that get renamed or deleted…✕Applying currency conversion at the storylevel inconsistently across different stories…4 · IN A REAL PROJECTA retail client's finance team needed a single SAC model to support both regional profitability dashboards anda monthly plan-vs-actual review. The consulting team built restricted measures for each major region, added aGross_Margin_Pct calculated measure with a divide-by-zero guard after the first UAT cycle surfaced blank…Original ERPClimb learning sheet • Verify against your SAP release and edition

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.

Free account

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.