Skip to main content

Metric Formulas - Time Overview

Time is the one dimension with an order. That is why a formula can read the period before, hold one period's value across the year, and start a chain at a named period. This module covers those mechanics and the date functions you can use.

Start Here

Read these five pages in order.

  1. Glossary — the Time terms used in this module, so the steps read clearly.
  2. Understand Time in Metric Formulas — the three mechanics, and the date functions you do not get.
  3. Set Opening Period — where a chain starts, and the only way to type into a Formula metric.
  4. Previous and Offset — the parameter row that reads an earlier period and declares the loop.
  5. Build a Rollforward — design the chain, seed the first period, verify before you publish.

Browse by Section

Section 1: Overview

The terms, and why Time has its own formula handling.

  • Glossary
  • Understand Time in Metric Formulas

Section 2: Key Concepts

The three mechanics, and what is available for dates.

  • Set Opening Period
  • Previous and Offset
  • Filtering Time to Hold a Value Constant
  • Date and Time Functions

Section 3: How-To Guides

The two patterns, end to end, with checks.

  • Build a Rollforward
  • Hold a Rate Constant Across Time

Section 4: How It Works

How a chain is replayed period by period.

  • How Rollforwards Are Calculated

Section 5: Reference

Time-related traps, messages and symptoms.

  • Limitations and Common Pitfalls
  • Error Messages and Symptoms

The Core Concept

Metrics run in an order worked out from their dependencies: if metric B feeds metric C, B runs first. There is no solve-order field. A rollforward creates a loop: Opening Balance reads Closing Balance, and Closing Balance reads Opening Balance.

The platform accepts that loop only when Opening Balance reads Closing Balance through a Set row against Previous, and Closing Balance is a Formula metric in the loop. It then replays the chain period by period. Any other loop is rejected with “Circular reference found for below metric(s): …”.

Each period's closing balance becomes the next period's opening balance, and the first opening figure is typed once, at the Opening Period. See the worked example on Understand Time in Metric Formulas.

Common Pitfalls

Filtering Time on the driver

Filter applies to one input, not the formula. Pin Time on the Lookup rate only; filter the Sum driver too and results appear for that period only. See Hold a Rate Constant Across Time.

Republishing from too late a period

The platform recalculates forward from the earliest period in the publish scope, not before it. Start at the earliest period the change affects. See How Rollforwards Are Calculated.

Expecting the first period to fill itself

Nothing seeds it. Save the Opening Balance metric with Set Opening Period ticked, go to the opening period and type the balances. See Set Opening Period.

Related modules: Metric types, settings, storage and publishing are in Metrics. Functions, parameters, expressions and how calculation runs are in Metric Formula.

Understand Time in Metric Formulas

Other dimensions slice the business. Time also has an order, so formulas need to say things about it that no other dimension needs. This page explains what those are and which mechanic handles each.

Why Time needs its own handling

The default matching rule treats every dimension the same way. For Entity, Product, Account or Currency that is enough. For Time, business calculations also need to say:

“the period before”

Closing inventory in March is opening inventory in April.

“hold this still”

A markup agreed in January applies to all twelve months. The rate is entered at one period; what it multiplies changes every period.

“start here”

A chain of periods starts with a number nobody calculated. Actual, Budget and Forecast may each start at a different period.

“what month is this?”

Not available as a function. You match on the period as a Time member instead.

The three mechanics, and what is missing

Set Opening Period

A metric setting that names the period a chain starts at and makes the metric typeable at that period, so the first number can be entered. Set Opening Period

Previous and Offset

A Set row with Time as the output field and Previous as the input field makes that input read the prior period. An Offset box appears, default -1. When the input is a Formula metric in the same chain, this row also declares the loop. Previous and Offset

Filtering Time

On a Lookup input, a Filter row pinning Time to one member gives the same value in every period. On a Sum input it only limits which period is read. Filtering Time to Hold a Value Constant

No date-part functions

YEAR, MONTH, DAY and TODAY are not supported. Match on the period as a dimension member instead. Date and Time Functions

A rollforward uses all of them

In a rollforward, this period's closing balance becomes next period's opening balance. Inventory, headcount, fixed assets, cash, provisions and loan balances all follow this shape.

           Opening Balance  =  prior period's Closing Balance

                     +  Movements          (typed: production, purchases, joiners, leavers)

                     =  Closing Balance    (becomes the next period's Opening)

  2026.P01   Opening  100  +  Movements  30  =  Closing  130

  2026.P02   Opening  130  +  Movements -20  =  Closing  110

  2026.P03   Opening  110  +  Movements  45  =  Closing  155

             ^

             typed once, at the Opening Period

The opening metric reads the closing metric from a different period, so the dependency is circular. The platform accepts this only when you declare the loop: the opening metric reads the closing metric through a Set row against Previous. Any other loop is rejected with a circular-reference error when you save.

The one thing to remember: Time is the only dimension where a formula may look backwards. Each mechanic in this module either declares that you meant to, or handles what follows from it.

What this costs

The platform replays a chain period by period in date order, so a rollforward republished across three years of monthly data does thirty-six passes instead of one. The publish scope must also start at the earliest period the change affects. See How Rollforwards Are Calculated.

What this module assumes

That you know what a metric and a formula are. If not, read Metrics and Metric Formula, especially Parameters and Matching: each mechanic here is a parameter row.

Not covered here:Carry Forward is a packaged data action that moves balances between years or scenarios as a triggered step, typically at year-end. It is not a formula. Use a rollforward when the hand-off is part of the ongoing calculation; use Carry Forward when it is a step someone runs.

Next:Set Opening Period — where a chain starts, and how its first figure is typed.

Was this article helpful?

We're sorry to hear that.