B7.
The Variable names the result, the expression defines the calculation, and the formula’s scope determines which Model values it controls. That business meaning stays the same when you or Ari view the result in a different table.
If these concepts are new, start with What is a Variable?.
For example, a Gross Profit Variable might use this formula:
Every formula has an expression and a scope
Every saved formula combines two parts:- Expression: what to calculate.
- Scope: which Dimensions, segments, or time ranges the calculation applies to.
A Variable can have more than one formula
A Variable can use different formulas in different parts of a model. You might use:- One default formula across the model
- A different formula for a particular department
- One formula for Actuals and another for Forecast
Variables and Dimensions do different jobs
A Variable holds a value. A Dimension organizes that value by a business category or time period. When Revenue is shown by Department, Revenue is the Variable, Department is the Dimension, and Sales is a Dimension item. Revenue for Sales is a segment of Revenue.References follow the current cell
A plain Variable reference follows the current segment. If a formula is calculating a value for Sales in March, a reference toHeadcount reads the Sales headcount for the same period when that context applies.
You can choose a different segment explicitly:
$ when a reference should not inherit the current segment: