ERPClimb logoERPClimb
Key Figures
Integrated Business Planningintermediate 8 min read

Calculated and Global Key Figures: Formulas, Operators, and Cross-Planning-Area Reuse (Part 3)

Preview · a free account unlocks the full lesson

Key takeaway

Learn how to design calculated key figures using formulas and operators, and how global key figures enable reuse of calculation logic across multiple planning areas in SAP IBP.

In this lessonShow sections

Visual overview

Calculated and Global Key Figures: Formulas, Operators, and Cross-Planning-Area Reuse (Part 3) — learning sheetIn one line: Learn how to design calculated key figures using formulas and operators, and how global key figures enable reuse of calculation logic across multiple planning areas in SAP IBP.ERPClimb.com / IBP / LESSON 3/4 / LEARNING SHEETCalculated and Global Key Figures: Formulas, Operators,and Cross-Planning-Area Reuse (Part 3)1 · IN ONE LINELearn how to design calculated key figures using formulas and operators, and how global keyfigures enable reuse of calculation logic across multiple planning areas in SAP IBP.2 · KEY IDEAS EXPLAINED1Once a planning model has basic stored key figures(demand, supply, inventory), most real projectsneed derived values: safety stock coverage indays, forecast error percentages, days of supply,or gross-to-net calculations. SAP IBP supportsthis through calculated key figures, which are…2A calculated key figure formula can use standardoperators (+, -, *, /), conditional logic (IF/THENstyle expressions supported by the formulaeditor), and functions for time-shifting(referencing prior or future periods) andaggregation overrides. For example, a 'Forecast…3A critical design decision is where thecalculation happens: as a calculated key figure(planning-area-specific, defined in the key figureconfiguration) versus a global key figure(reusable across multiple planning areas, definedonce and referenced wherever needed). Global key…4Designers must also decide the aggregationbehavior of calculated key figures independentlyfrom their input key figures. A calculated keyfigure is not simply 'summed up' from lower levelsunless explicitly configured to behave that way;often the correct approach is to calculate at the…3 · DO · AVOIDBest practice!Common mistakeCalculate ratios and percentages at the lowestmeaningful planning level, then aggregate the…Use global key figures for metrics sharedacross multiple planning areas to enforce a…Explicitly handle zero/null denominators inevery formula to avoid blank or misleading…✕Aggregating input key figures first andcalculating ratios afterward, producing…✕Building duplicate calculated key figures withslightly different formulas across planning…✕Not handling division-by-zero or null cases informulas, causing blank or error values in…4 · IN A REAL PROJECTA consumer goods client had two planning areas: one for monthly S&OP and one for weekly supply planning.Both needed an 'Inventory Turns' metric. Initially, two teams independently built separate calculated keyfigures with slightly different formulas (one used average inventory, the other used ending inventory)…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Once a planning model has basic stored key figures (demand, supply, inventory), most real projects need derived values: safety stock coverage in days, forecast error percentages, days of supply, or gross-to-net calculations. SAP IBP supports this through calculated key figures, which are defined using formulas that reference other key figures, planning level attributes, and time offsets, evaluated at runtime rather than stored as static values (in most configurations).

A calculated key figure formula can use standard operators (+, -, *, /), conditional logic (IF/THEN style expressions supported by the formula editor), and functions for time-shifting (referencing prior or future periods) and aggregation overrides. For example, a 'Forecast Accuracy %' key figure might be defined as 1 - (ABS(Actual - Forecast) / Actual), with safeguards for division by zero.

Because these formulas execute at query or calculation time, performance matters: overly complex nested formulas referencing many time offsets can slow down planning views, especially on large planning areas with many key figures and combinations.

A critical design decision is where the calculation happens: as a calculated key figure (planning-area-specific, defined in the key figure configuration) versus a global key figure (reusable across multiple planning areas, defined once and referenced wherever needed).

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.