Skip to main content

Metric Formulas - Time How-To Guides

Build a Rollforward

Closing balance becomes next period's opening balance: inventory, headcount, fixed assets, cash, provisions, loan balances. This walkthrough covers designing the chain, configuring the Opening Balance metric, writing the formulas, seeding the first period and checking before you publish.

Set Opening Period · Set + Previous · Offset · Summary = None

Why it is different

Opening Balance reads Closing Balance from the period before, so the dependency is circular. The platform accepts this only when Opening Balance reads Closing Balance through a Set row against Previous (Step 2). Any other loop is rejected on save with “Circular reference found for below metric(s): …”.

Step 1 — Design the chain

Metric

Type

Purpose

Opening Balance

Formula

Reads the prior period's Closing Balance. The only metric with opening configuration.

Movements

Input

What people type: production, purchases, disposals, units sold, joiners, leavers.

Intermediate (optional)

Formula

A named midpoint such as Goods Available for Sale. Useful when a period looks wrong.

Closing Balance

Formula

Goods Available for Sale less units sold. A normal Formula metric with no special settings.

Only Opening Balance is unusual. The rest are plain Input or Formula metrics.

Step 2 — Configure the Opening Balance metric

Metrics Type

Formula, with the Time dimension on Layout > Rows (otherwise Set Opening Period is not shown)

Summary Method

None: a balance must not be summed across periods

Set Opening Period

Tick it, then choose an Opening Period: a fixed base-level Time member, or a Version property linked to Time (shown as <Version dimension> - <property>) when scenarios start at different periods. See Set Opening Period.

Input metric

Closing Balance, function Sum. This reference closes the loop.

Parameter row

Set · output your Time dimension · As · input Previous. An Offset box appears, default -1. Because Closing Balance is a Formula metric in the same chain, this row declares the loop. If the box does not appear, see Previous and Offset.

Version range

Every version that carries the rollforward needs Applicable From and Applicable To set; the chain is replayed over that range. See How Rollforwards Are Calculated.

Step 3 — The formulas

-- Opening Balance: the parameter row does the period shift, so this is a plain reference

=D2

-- Goods Available for Sale

=D2+E2

-- Closing Balance

=D2-E2

There is no D2[-1]; the shift is in the parameter row. Note this in the metric description for reviewers.

Summary Method None on both balance metrics: With the default Sum, a yearly view of Opening or Closing Balance adds twelve balances together. Set both to None. See Configure Metric Settings.

Step 4 — Seed the first period

The first period has no prior period to read, so you type its figure. With Set Opening Period ticked, Opening Balance accepts entry only in cells at the opening period; with a version-linked Opening Period, each scenario at its own start period.

  1. Save the chain with Set Opening Period ticked on Opening Balance.
  2. Go to the opening period, in the scenario you are seeding.
  3. Type the opening balances.
  4. Every later period then reads the one before it.

If the cell will not accept the value: Check that you are on the opening period, not on a parent member, and that Set Opening Period is saved. See Set Opening Period.

Step 5 — Check before you publish

  1. The first period shows the figure you typed, not blank and not an error.
  2. The second period's Opening Balance equals the first period's Closing Balance exactly.
  3. A middle period passes the same check.
  4. A different entity, product or scenario passes too. Matching errors are invisible on one slice.
  5. A yearly view shows a blank, not the sum of twelve balances. If it sums, Summary Method is still Sum somewhere.

Publishing a rollforward

Three rules for this pattern:Start at the point of change. The platform recalculates forward from the earliest period in the publish scope to the end of each version's Applicable To period, not before it. Start later than the change and the hand-off from earlier periods is stale.

Keep the scope narrow. The chain is replayed once per period, so three years of monthly data is thirty-six passes.

Check the run afterwards. If a metric fails, the run carries on and nothing already written is rolled back, so later periods can be built on stale values. Check the run's status in the Task Monitor (Explorer → Governance → Monitor → Task Monitor), not the sheet. See How Calculation Runs.

Why it replays period by period: How Rollforwards Are Calculated. Scope options: Publish Changes.

Carry Forward is a different feature:Carry Forward is a packaged data action that moves balances between years or scenarios as a triggered step. When it is enabled on a sheet, typing into the flow member it reserves is blocked with “Cannot input data to <flow member> when <feature> is enabled”.

Next:Hold a Rate Constant Across Time — the other Time pattern.

Hold a Rate Constant Across Time

A markup stored against January, an annual FX rate, a standard cost: the rate is entered once, and what it multiplies changes every month. A Lookup input with one parameter row does this.

Sum · Lookup · Filter

When to use it

When the rate metric has the Time dimension but is filled at one period only. If the rate is on a sheet with no Time dimension, read it with Lookup and no Filter. See the decision table on Filtering Time to Hold a Value Constant.

The configuration

Input 1 — the driver

Net Price — Sum, no parameters, so it matches month to month

Input 2 — the rate

Markup % —Lookup, one row: Filter · TIME · Eq · 2026.P01

Summary Method

None — a price should not be added across periods

=D2*(1+E2)

The Filter takes Time out of matching for Markup % only, so it returns January's value in every month. Net Price still varies by month, so the output does too.

           Net Price   Markup %          Sales Price

  2026.P01   4.50        0.20  (Jan)      5.40

  2026.P02   4.55        0.20  (Jan)      5.46     <- Markup still reads January

  2026.P03   4.60        0.20  (Jan)      5.52

                         ^

                         FILTER: TIME Eq "2026.P01"  on this input only

Do not filter the driver

Filter Time on the rate only:Filter applies to one input, not the formula. Add the same row to Net Price and it is read only at 2026.P01, so Sales Price appears for that period only. The pinned period still looks right, so check a second period before you publish.

The pinned member is a hard-coded ID

Year rollover: When the model rolls into the next year, the Filter still points to 2026.P01.

What to do. If the rate can be held as a property of a dimension member, Direction B of Set applies it without naming a period (Scenario 4 on Scenario Guide). Otherwise, add “review pinned periods” to your year-end checklist.

Keep the driver on Sum

At least one non-Lookup input: Read rates, factors and standard costs with Lookup, and keep the driver on Sum. A formula with only Lookup inputs is refused with “There has to be at least one non-Lookup input metric in your formula”. See Formula Functions.

Check before you publish

  1. Results appear in every period. If only the pinned period has a result, Time is filtered on the driver too.
  2. The rate is the pinned period's value in a month far from the pinned one.
  3. A second slice (another entity or product) is still right.
  4. A rolled-up view is blank, not a sum of prices. If it sums, Summary Method is still Sum.
  5. Note the pinned period in the year-end checklist.

If you wanted the period before

A Filter is absolute: the same named period every time. A Set row against Previous is relative: each period reads the one before. If the rate should move with the calendar, see Previous and Offset.

Next:How Rollforwards Are Calculated — how the platform runs a period-over-period chain.

Was this article helpful?

We're sorry to hear that.