All components

Margin and disclosed cost changes

Reconcile a chosen margin to revenue growth, identified cost changes and an explicit remainder.

How it works

Margin and disclosed cost changes (18)
  1. Comparison Available

    if Conditional result using (Prior Revenue > 0), then 1, otherwise 0

  2. Cost Change

    Cost Change

  3. Cost Effects

    Cost Effects

  4. Cost Residual

    ((Cost Change − Identified Change) − Unexplained Change)

  5. Current Revenue Available

    if (Current Revenue > 0), then 1, otherwise 0

  6. Identified Change

    Identified Change

  7. Margin

    Margin

    Uses
  8. Margin Change

    Margin Change

  9. Margin Residual

    (((Margin Change − Revenue Effect) − Sum(Cost Effects)) − Unexplained Effect)

  10. Negative Inputs

    (((Higher of (Prior Revenue × -1) and 0 + Higher of (Prior Costs × -1) and 0) + Higher of (Current Revenue × -1) and 0) + Higher of (Current Costs × -1) and 0)

  11. Prior Margin

    Prior Margin

  12. Prior Profit

    Prior Profit

  13. Prior Revenue Available

    if (Prior Revenue > 0), then 1, otherwise 0

  14. Profit

    Profit

    Uses
  15. Profit Change

    (Profit − Prior Profit)

  16. Revenue Effect

    Revenue Effect

  17. Unexplained Change

    Unexplained Change

  18. Unexplained Effect

    Unexplained Effect

Calculation steps (16)
  1. Identified Change

    Sum(Changes)

  2. Profit

    (Current Revenue − Current Costs)

  3. (Current Revenue > 0)

    (Current Revenue > 0)

  4. Cost Change

    (Current Costs − Prior Costs)

  5. Prior Profit

    (Prior Revenue − Prior Costs)

  6. (Prior Revenue > 0)

    (Prior Revenue > 0)

  7. if (Current Revenue > 0), then Current Revenue, otherwise 1

    if (Current Revenue > 0), then Current Revenue, otherwise 1

  8. Unexplained Change

    (Cost Change − Identified Change)

  9. Conditional result using (Prior Revenue > 0)

    if (Prior Revenue > 0), then if (Current Revenue > 0), then true, otherwise false, otherwise false

  10. if (Prior Revenue > 0), then Prior Revenue, otherwise 1

    if (Prior Revenue > 0), then Prior Revenue, otherwise 1

  11. Margin

    if (Current Revenue > 0), then (Profit ÷ if (Current Revenue > 0), then Current Revenue, otherwise 1), otherwise 0

    Model function · Div currency percent

    Argument values
    Denominator
    if (Current Revenue > 0), then Current Revenue, otherwise 1
    Numerator
    Profit
  12. Cost Effects

    if Conditional result using (Prior Revenue > 0), then ((Changes × -1) ÷ if (Current Revenue > 0), then Current Revenue, otherwise 1), otherwise 0

    Model function · Currency driver percent

    Argument values
    Denominator
    if (Current Revenue > 0), then Current Revenue, otherwise 1
    Numerator
    (Changes × -1)
  13. Unexplained Effect

    if Conditional result using (Prior Revenue > 0), then ((Unexplained Change × -1) ÷ if (Current Revenue > 0), then Current Revenue, otherwise 1), otherwise 0

    Model function · Div currency percent

    Argument values
    Denominator
    if (Current Revenue > 0), then Current Revenue, otherwise 1
    Numerator
    (Unexplained Change × -1)
  14. Prior Margin

    if (Prior Revenue > 0), then (Prior Profit ÷ if (Prior Revenue > 0), then Prior Revenue, otherwise 1), otherwise 0

    Model function · Div currency percent

    Argument values
    Denominator
    if (Prior Revenue > 0), then Prior Revenue, otherwise 1
    Numerator
    Prior Profit
  15. Revenue Effect

    if Conditional result using (Prior Revenue > 0), then ((Prior Costs ÷ if (Prior Revenue > 0), then Prior Revenue, otherwise 1) − (Prior Costs ÷ if (Current Revenue > 0), then Current Revenue, otherwise 1)), otherwise 0

    Model function · Div currency percent

    Argument values
    Denominator
    if (Prior Revenue > 0), then Prior Revenue, otherwise 1
    Numerator
    Prior Costs

    Model function · Div currency percent

    Argument values
    Denominator
    if (Current Revenue > 0), then Current Revenue, otherwise 1
    Numerator
    Prior Costs
  16. Margin Change

    if Conditional result using (Prior Revenue > 0), then (Margin − Prior Margin), otherwise 0

Conventions (8)
  • Prior and current revenue and costs are nonnegative magnitudes for matching periods, currency, perimeter and accounting presentation.
  • Changes are signed nonoverlapping cost movements, not cost levels. The caller owns their labels, ordering and completeness.
  • The unexplained cost change is total change less identified changes; it can be negative and is never clamped or called a disclosed cost category.
  • The margin bridge changes revenue first while holding prior costs fixed, then applies all cost changes at current revenue.
  • This ordering assigns the revenue/cost interaction to cost effects. The bridge is arithmetic attribution, not causal economics or incremental margins.
  • Margin effects are fractional percentage-point changes. Both revenues must be positive; otherwise bridge ratios are zero with an unavailable flag.
  • A zero identity residual does not establish full cost disclosure. Costs may already contain depreciation, funding or netted revenue costs; do not deduct them again.
  • The caller names the resulting profit measure. No merchandise margin, purchases, cash flow or forecast is inferred.

Inputs and outputs

Inputs (5)
Inputs
NameUnitApplies to
ChangesDollarsDriver
Current CostsDollarsSingle value
Current RevenueDollarsSingle value
Prior CostsDollarsSingle value
Prior RevenueDollarsSingle value
Outputs (18)
Outputs
NameUnitApplies to
Comparison AvailableFlagSingle value
Cost ChangeDollarsSingle value
Cost EffectsPercentDriver
Cost ResidualDollarsSingle value
Current Revenue AvailableFlagSingle value
Identified ChangeDollarsSingle value
MarginPercentSingle value
Margin ChangePercentSingle value
Margin ResidualPercentSingle value
Negative InputsDollarsSingle value
Prior MarginPercentSingle value
Prior ProfitDollarsSingle value
Prior Revenue AvailableFlagSingle value
ProfitDollarsSingle value
Profit ChangeDollarsSingle value
Revenue EffectPercentSingle value
Unexplained ChangeDollarsSingle value
Unexplained EffectPercentSingle value

Libraries