Metric Formula Reference
Limitations and Common Pitfalls
The callout below and the first item produce plausible wrong numbers with no error. Read them even if you skip the rest.
CRITICAL: Parent-member totals are not recalculated: A Formula metric is calculated only where its input data is stored — normally leaf members — and is not recalculated at parent members. A quarter, year or division shows the Summary Method total of the stored values below it — Sum unless you change it. That is right for amounts and wrong for prices, percentages and ratios, and nothing warns you. Set Summary Method to None for those, and build any rolled-up percentage as its own Formula metric that divides two amount metrics. (Not to be confused with the Parent metric type, which adds or subtracts other metrics.) See Configure Metric Settings.
1. A failed run can leave mismatched data
Populated is not the same as correct: If a metric fails, the run carries on: later metrics still run against old values, and nothing already written is rolled back. The sheet looks normal.
What to do. After any run, check its status in the Task Monitor. On Failed, fix the named metric and rerun. See How Calculation Runs.
2. The two Set directions do opposite things
Check which side carries the property: Property on the input: input values are summed into the member the property names. Property on the output: the input value is copied to every member whose property names it.
What to do. “Detail rolling up” puts the property on the input; “one rate broadcasting down” puts it on the output. See Parameters and Matching.
3. A function that is not converted may appear to work
Do not trust a successful test: Function names JustPerform does not convert are passed to the analytics database unchanged. They may fail to publish, or behave differently from Excel.
What to do. Prefer the functions listed on Expressions. Check anything else against a few rows worked out by hand.
4. Results can differ slightly from Excel
Do not promise an exact match: Rounding, operator precedence and type coercion come from the analytics database. A missing input counts as zero (empty text for a text input), not blank.
What to do. Use brackets for precedence. For a parallel-run sign-off, agree a tolerance
up front. Guard any denominator that is not simple with IF.
5. No cell-level lineage
Flag this early: You cannot drill from a calculated value to its input values. The rule and the run are traceable; the individual number is not. Use named intermediate metrics and keep inputs on the same sheet. See What You Can Trace.
6. No undo on values, and no period lock
Publish carefully: Formula text is versioned; calculated values are not. Choosing all historical and future data recalculates closed periods, with nothing to stop it. Use the selective scope and note what you used (Publish Changes).
7. Smaller limits, and what to do about each
Limitation |
What to do |
|---|---|
No range references |
|
A small set of converted functions |
|
|
Use |
Division guard covers simple denominators only |
Wrap a denominator with a function or nested brackets in |
Two reserved columns |
Data Details and Variance. A formula that refers to either is rejected. |
|
Its value appears as its own column after the input; to add numbers, use |
At least one input must not be a |
An all-Lookup formula is rejected. Keep the main driver on |
Group Output Data takes exactly one input |
To rank a calculated figure, build it as its own Formula metric first. |
Maximum run time |
A calculation still In-Progress after the maximum run time (2 hours by default) is marked Failed in the Task Monitor; values already written stay. Fix the cause before you rerun. |
No record limit |
No record limit stops a calculation. Test heavy chains at realistic volumes. |
Limits that live in the other two modules
Where to look:Metric limits — Summary Method defaults, Data Type groups, Ratio not offered, Allow Input on Linked metrics, and type or delete blocked once a metric is an input — are on Limitations and Common Pitfalls in Metrics.
Time limits — a pinned period going blank at year rollover, an output identical in every period, an unseeded rollforward first period, a rollforward republished discontinuously
The short version
If you remember four things:
- Set Summary Method None on prices, percentages and ratios — parent-member cells show the Summary Method total.
- Check the run status in the Task Monitor, not the sheet.
- Decide the
Setdirection before you configure it. - Check a second slice of data before you publish.
Error Messages and Symptoms
Every formula message quoted as the product shows it, so you can search for it. No message but wrong numbers? Go to the last table.
Formula and syntax
Message |
Cause and fix |
|---|---|
Formula is invalid! Please check your syntax or list of supported functions. |
The formula was not saved or published; the previous one stays. Causes: a typo, a function the analytics database does not have, a range, or a division by a function without brackets. See Expressions. |
Please verify the formula syntax |
A parameter row is incomplete. Look for the warning icon and the “… is not set” text under the input — Function type is not set, Input value is not set or Dimension Member value is not set — and complete or delete the row. |
Formula is invalid! Data Details and Variance columns are not supported |
The expression refers to a reserved column; the cell goes back to its previous formula. Point it at the input columns. A Control metric has two more columns (Status and Message) before those. |
A Filter or Where condition is required for dimensions that appear in both the Input metrics and the Add metrics |
A |
Circular reference found for below metric(s): … |
The formula chain loops back on itself; the named metrics show where. |
Input metric does not exist |
A referenced metric was renamed or deleted. Re-add it, then re-read the expression — column letters may now point elsewhere. |
There has to be at least one non-Lookup input metric in your formula |
Every input is |
The following input metric is not referenced in the formula: {metricNames}. The update will not impact the formula computation. |
An input is attached but unused. Remove it so reviewers are not misled. |
Publishing and running
Message |
Cause and fix |
|---|---|
Update formula will impact N records. (Please consider formula optimization function such as Lookup, Applicable to... if relevant) |
The formula produces more than 50,000 records. A warning, not a block; cancelling keeps the previous formula. See Performance and Limits. |
The impacted record does not account for future changes. Do you want to proceed? |
The count covers existing data, not data yet to arrive. |
This will recalculate ALL historical data / This action will recalculate all data, which may take several minutes. |
You chose the widest publish scope. It restates closed periods too — there is no period lock. See Publish Changes. |
All existing calculated values will be replaced |
The Rerun Metric warning. Expected. |
Please wait for previous calculation to be complete |
A rule calculation from a process task found another running over the same dimension context. Wait, or check the Task Monitor for a run still In-Progress. |
Metric Publish is in progress. Please try again later |
You tried to save a metric's details while it is publishing. Wait, then save again. |
Failed to calculate metrics: followed by <sheet>.<metric> and Reason: … on separate lines |
That metric failed. Later metrics still ran against old values. The run shows Failed in the Task Monitor; fix the cause and rerun. When publishing one metric it can read Failed to calculate metric:. See How Calculation Runs. |
Auto failed by the batch because the calculation execution exceeded the maximum elapsed time |
The run was still In-Progress after the maximum run time (2 hours by default). Only the status changes; values already written stay. Fix the cause and rerun. |
Process killed on User Request |
Someone stopped the run from the Task Monitor. Rerun when ready. |
No error, but the numbers are wrong
Symptom |
Likely cause |
|---|---|
A percentage, price or ratio on a parent row is far too high or meaningless |
Parent-member cells show the Summary Method total (Sum by default; Formula behaves like Sum). Set Summary Method to None. See Limitations and Common Pitfalls. |
A value is many times too big |
An input at a finer grain than expected, totalled by |
Blanks where the formula should produce values |
A reversed |
A coarse rate reaches only one member, or lands on the default member |
The rate input is not |
Zero where you expected a blank |
A missing input counts as zero (empty text for a text input). |
Some rows are blank and others are fine |
The property behind a |
Rows missing after adding an |
Input rows with no matching row in the joined metric produce no result. |
The formula reads the wrong metric |
Column letters are positional. An input was added, removed or reordered after the expression was typed. |
Numbers look right but downstream figures do not reconcile |
A previous run failed, and later metrics ran against old values. Check the Task Monitor and rerun — How Calculation Runs. |
A value posted to an unexpected member |
An |
A function behaves differently from Excel |
It is probably not converted by JustPerform. See Expressions. |
A result differs slightly from your spreadsheet |
Rounding or precedence in the analytics database. Check the brackets, and agree a tolerance for parallel runs. |
Symptoms in the other two modules: A balance totalled across a year, an inverted control status, or a ranking wrong for the period on screen: Error Messages and Symptoms in Metrics.
Where to go next: Back to the Metric Formula home page, or Scenario Guide to rebuild a formula from a known configuration.