Calculated and Global Key Figures: Formulas, Operators, and Cross-Planning-Area Reuse (Part 3)
Preview · a free account unlocks the full lesson
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 sectionsHide sections
Visual overview
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).
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
Interview questions on this topic
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.