Metric Formulas - Time Key Concepts
Set Opening Period
One checkbox and one dropdown. Ticking Set Opening Period names the period where
a chain starts and lets you type into the metric at that period. The loop itself is declared by a
Set row against Previous.
Where it appears
Only when Metrics Type is Formulaand the Time dimension is on the metric's Layout > Rows in Metric Details. It is not shown when the metric is opened from the sheet's metric list. If you cannot find it, check these first.
What declares the loop |
Not this setting. The loop is accepted because the metric reads the closing
metric, a Formula metric in the same chain, through a |
What ticking it enables |
Typing into this Formula metric, only in cells whose Time member (on rows, columns or the page filter) is the opening period, and not on parent members unless Enable Input To Parent Members is ticked on the sheet. All other cells stay calculated and read-only. |
The two kinds of Opening Period
A fixed Time member |
One base-level period, e.g. |
A Version property linked to Time |
Shown as <Version dimension> - <property>: a Version property whose values are Time members. Each version member's value is its own opening period, so Actual, Budget and Forecast can start at different periods with one metric. Listed only when the Version dimension is also on Layout > Rows. |
When scenarios start at different periods: A fixed member is a hard-coded ID: at year rollover it still points to the same period. A version-linked property is kept in master data, so a new forecast cycle gets its own start without editing the metric. If all scenarios start together, the fixed member is simpler.
Typeable at the opening period only
The one exception to “Formula metrics are read-only”: A Formula metric with Set Opening Period ticked accepts entry at its opening period and nowhere else. It exists so the first period of a chain can be seeded. With a version-linked Opening Period, each scenario is typeable at its own start period.
Allow Input never makes a Formula metric typeable; see Metric Types.
The sequence for a new rollforward: configure and save the chain, go to the opening period, type the opening balances. Full walkthrough in Build a Rollforward.
What it does not do
It does not… |
What does |
|---|---|
Declare the loop, or shift a period |
A |
Hold a value constant across periods |
A |
Stop a balance being summed across the year |
Summary MethodNone on the metric. Configure Metric Settings |
Seed the first period by itself |
Nothing does. Someone has to type the opening figure. If the first period is blank, check this first. |
Carry balances between years as a triggered step |
The Carry Forward data action, a separate feature. When it is enabled on a sheet, typing into the flow member it reserves is blocked. |
Checklist when it is not working
- Is the section visible? Metrics Type must be Formula and Time must be on Layout > Rows.
- Is the Opening Period the one you expect? With a version-linked property, check the property value for the scenario you are on.
- Are you on the opening period? Elsewhere, and on parent members unless Enable Input To Parent Members is ticked, entry is refused with “Cannot input data to Calculated Metrics”.
- Is the setting saved? The opening cells become typeable once the saved metric has Set Opening Period ticked and an Opening Period chosen.
- Is Summary Method None? It does not affect the loop, but it stops a yearly view adding twelve balances together.
Next:Previous and Offset — the row that shifts the period and declares the loop.
Previous and Offset
The period shift is set in a parameter row, not in the expression. One Set
row, in one exact combination, makes an input read the prior period and shows an Offset box. When that
input is a Formula metric in the same chain, the row also declares a rollforward loop.
Set · Previous · Offset
The row
It is a normal Set row (see
Parameters and Matching) with Time on the output side and
the entry Previous on the input side.
Set · TIME · As · Previous [ Offset: -1 ]
^ ^ ^ ^ ^
parameter output field relation input field appears only for
(your Time dim) (fixed) (the special entry) this exact combination
Parameter |
|
Output field |
Your Time dimension |
Relation |
As — fixed by the parameter |
Input field |
The entry labelledPrevious |
Offset |
Appears once the above are set; default |
If the Offset box is not showing
It appears for one exact combination only: A Set row, Time as the output field, and Previous as the input
field. Anything else and the box stays hidden, with no message.
Previous is listed only when the Time dimension is on Rows. If it is missing from the dropdown, check Layout first.
What Offset means
Offset shifts the Time member ID, not a number of days. YYYY.Pnn
members shift by months, YYYY.Qn by quarters and YYYY by years.
YYYY.TOTAL members, and IDs in other forms, are not shifted.
Offset |
Reads |
Typical use |
|---|---|---|
|
The period just before |
The default; what a rollforward needs.Build a Rollforward |
Other negative values |
Further back |
E.g. |
Positive values |
Later periods |
Reading ahead a fixed number of periods. The box sets no range limit. |
The expression stays plain
Because the shift is in the parameter row, the Opening Balance expression is just a reference:
=D2 -- D is Closing Balance; the Set/Previous row makes it the PRIOR period's value
The meaning is in the parameter row, not the expression. Say so in the metric description so reviewers know where to look.
Previous is not the same as filtering Time
|
Relative. Each period reads the one before it, so the value changes through the year. |
|
Absolute, on a |
Mixing them up gives the same balance in every period, or a rate that changes when it should not.
Linking a period through a Time property
Offset shifts every period by the same distance. If each period should name its own source period, link periods through a Time property instead.
- Create the property. On the Time dimension, add a property with Property TypeLink to another record and set Find a table to link records from to the Time dimension. Each period's value is the period it links to.
- Show it on the metric. In the Formula metric's Metric Details, with Time on Layout > Rows, click Preferences, then under Display Properties click Update List and select the Time property.
-
Add the
Setrow on the input metric: output field <Time dimension>.<property>, As, input field the Time dimension.
The property values are read each time the metric calculates, so changing a value changes which period is read next time.
|
Read from the linked period. Each output period reads the input at the period its property value names. |
|
Post to the linked period. The property is on the input side and is listed without the Preferences step. Each input period's value is posted to the period its property names; values posted to the same period are summed. |
No Offset box appears on either row; the property values do that job.
Next:Filtering Time to Hold a Value Constant — the absolute counterpart, and its traps.
Filtering Time to Hold a Value Constant
A rate stored against one period often has to apply in every period. You do this with a
Lookup input and one Filter row. The common mistake is adding the
Filter to the driver as well.
Filter · Lookup
The mechanic
On a Lookup input, Filter takes one dimension out of matching for that input
and pins it to the members you name. Pinned on Time, the input returns the named period's value whatever
period is being calculated.
On a Sum, Get, Max or Min input, Filter
only limits which members are read; the value is not repeated into other periods. To hold a value
constant, use Lookup.
Net Price [Sum] <- still matches month to month
Markup % [Lookup; FILTER: TIME Eq "2026.P01"] <- Time no longer matches;
January's value is used every month
Function |
|
Parameter |
|
Field |
Your Time dimension |
Relation |
Eq — fixed by the parameter |
Members |
The period the value is stored against, e.g. |
Applies to |
One input, not the formula |
Full configuration in Hold a Rate Constant Across Time.
Filter applies per input
Filter Time on the driver too and the output covers one period only: It is easy to add the same row to the driver, by copying it or by assuming it is a formula-level
setting. On the Sum driver it limits the driver to the pinned period, so the
formula produces results for that period only. The pinned period still looks right.
What to do. Pin Time on the rate only, read with Lookup. Leave the
driver without parameters. Check a second period before you publish.
The pinned member is a hard-coded ID
Year rollover:2026.P01 is a member ID, not a rule. When the model rolls into the next year, the
Filter still points to 2026.P01.
What to do. If the value can be held as a property of a dimension member, use
Direction B of Set instead (Scenario 4 on
Scenario Guide). Otherwise, add a review of pinned
periods to your year-end checklist.
When you do not need a filter
If the rate is on a sheet with no Time dimension, read it with Lookup: a
Lookup input that lacks an output dimension is repeated across every member of it. Read
with Sum, it is not repeated across periods.
Rate sheet has no Time |
Read it with |
Rate sheet has Time, filled at one period |
Read it with |
Rate is meant to vary by period |
Do nothing. The default matches month to month. |
Rate should come from the period before |
Use |
Filter works on any dimension: The same row pins Currency, Version or Account. General treatment on Parameters and Matching.
Next:Date and Time Functions — what is available for dates, and what to use instead.
Date and Time Functions
You can subtract one date from another, but you cannot ask what month a date falls in. This page lists what is available, what is not, and what to use instead.
NOW · DATE(yyyy,m,d)
What is supported
Category |
Supported |
|---|---|
Date / time |
|
Subtracting two Date metrics gives the number of days between them. NOW() returns the
current date and time as days since 1 January 1970, with the time of day as a fraction: a number, not a
Date value. A Date input can be read with Lookup, Get, Max or
Min. Summary Method on a Date metric offers None, Min, Max and Formula.
What is not, and what to use instead
You reach for |
Status |
Do this instead |
|---|---|---|
YEAR / MONTH / DAY |
X |
No substitute function. Match on the Time dimension instead (see below). |
TODAY |
X |
|
EOMONTH / DATEDIF / WEEKDAY / NETWORKDAYS |
X |
Not supported. Only whole-day arithmetic between two Date metrics. |
A period offset in the expression |
X |
There is no |
Use the Time dimension instead
In a spreadsheet a date is just a cell value, so MONTH(A2)=3 is how you say
“March”. In JustPerform the period is a dimension member, with a parent
quarter, a parent year and properties from master data. You can match on those directly.
“Only in March” |
A |
“By quarter” / “by year” |
Read at the parent member of the Time hierarchy. The parent cell shows the metric's Summary Method total of the stored values below it (Sum by default); nothing is recalculated there.Configure Metric Settings |
“Depends which half-year” |
A property on the Time member, added to Rows via Preferences, then used
in |
“The period before” |
|
Rule of thumb: If you want a date part, look for the Time member or property that expresses the same idea, and match on that.
Where it is a real limitation
This works for planning periods. It does not help when the date is a business date in a Date metric (a contract start, an invoice date, a hire date) and you need its month or the working days until it.
Date metrics are not fully supported: There is no supported way to get a month or year from a Date metric's value, and no working-day or calendar functions.
What to do. If your design depends on it, plan how the date's period will reach the model first. Do not use an unsupported function name: unrecognised names are passed straight to the database and may appear to work while behaving differently from Excel. See Expressions.
One workable pattern: load the date's period alongside the date, as an Input metric or a dimension property holding the Time member the event belongs to. The formula then matches on a dimension instead of parsing a value.
Next:Build a Rollforward — the full walkthrough, from design to checks before publish.