Skip to content

calc/all-dimensions-accounted

Starts at Warning. It reads Calc Script files in Rules only. A Template or Script is only part of a Rule, so the dimensions it doesn’t name are usually named by the Rule around it. It needs the application’s dimensions, so it stays silent until they are in the Pod Folder: after a Pull, or an Import from a Snapshot.

A dimension counts as named when at least one of its members, or an alias of one, appears:

  • in the member list of a FIX, FIXPARALLEL, or EXCLUDE, or
  • on the left of an assignment, such as "Net Income" = …, or at the start of a calc block, such as "Net Income" ( … ). Every member on the left counts, so "Net Income"->"FY26" = … names both Account and Years.

Members on the right of = are inputs, so they don’t count. A member name that exists in more than one dimension counts for all of them.

It stays silent in two cases:

  • A FIX member list, or the left side of an assignment, uses a Run-Time Prompt such as {RTP_ENTITY}, a Design-Time Prompt, or a substitution variable such as &CurYear. The real members aren’t known until the Rule runs.
  • The Rule names no dimension at all, such as a bare CALC ALL; or a plain AGG, which is meant to run across everything.

It reports one finding per Rule, on the first line, listing every dimension the Rule never names.

A dimension the Rule never names is calculated across every one of its members. On a large Entity or Product dimension, that turns a short calculation into a long one, and it can write data you never meant to touch. Nothing fails, which is why this is easy to miss: the Rule runs, it just takes much longer and changes more data than you expected.

The application ACMEPLAN has Account, Period, Years, Scenario, Version, Entity, and Product. This Rule names Scenario, Version, Years, and Period in the FIX, and Account on the left of the assignment:

FIX("Budget", "Working", "FY26", @RELATIVE("YearTotal", 0))
"Net Income" = "Revenue" - "Total Expenses";
ENDFIX

The finding sits on the first line:

These dimensions are never accounted for: Entity, Product. Name each one in a FIX(...) or use it as an assignment anchor — a dimension the script never names is calculated across all of its members.

Corrected by naming the two missing dimensions in the FIX:

FIX("Budget", "Working", "FY26", @RELATIVE("YearTotal", 0),
@RELATIVE("Total_Entity", 0), "No Product")
"Net Income" = "Revenue" - "Total Expenses";
ENDFIX

Change its level (Error, Warning, Info) or turn it off in the Lint Rules panel, or excuse one file with a Lint Exception.

A Rule that really is meant to run across a whole dimension is a fair Exception. Keeping the Lint Rule on everywhere else keeps the accidental cases visible.