When you reference a variable in a formula in Lucanet xP&A (Extended Planning & Analysis), there are two key ways to modify it - using Dimensions(if applicable), and Time.

Time modifiers in Lucanet xP&A allow you to reference various different time instances of a variable.

Shows the time modifier drop-down list in Lucanet xP&A open below the formula bar for 'Other income by 2 this month', listing 'SINGLE MONTH' options ('this month', 'previous month', '1 year ago') and 'TIME SPAN' options ('last 3 months', 'last 12 months', 'calendar ytd', 'last 3 months of actuals', 'cumulative', 'all months'), plus 'Custom' at the bottom.
Time Modifier

The following types of time modifiers are available in Lucanet xP&A:

This 'month': returns the current value of that variable

Previous 'month': returns the previous value of that variable, relative to the time step in which the formula is being applied.

Example: In June, Customers[previous] corresponds to the value of Customers in May.

By default, when you reference another variable, xP&A will return the current value of that variable. When you reference the variable itself, xP&A will return the previous value of that variable.

Look-back and look-forward: returns the value of that variable x days/weeks/months/years in the past or future, from "t" (the current time step).

Example: if you want xP&A to return the value 12 months ago, your time modifier would be t-12. Conversely, if you wanted to return the value three months in the future, your time modifier would be t+3.

Shows a formula in Lucanet xP&A referencing the 'Total customers' variable with the time modifier '6 months ago'.
Looking back 6 month ago

In a look-back or look-forward, you may reference dates that are before the start, or after the end of a model's date range. These cells will evaluate to the empty value of the variable (ie., either 0, or the none value).

Final: returns the value of the final timestep of the model for that variable. Note that if you extend your model time settings, any variables referencing the final time step will auto-update.

Absolute: returns the value of a single, particular timestep for that variable. e.g. 1 refers to the 2nd timestep of the model, 0 refers to the 1st timestep of the model etc. You can also just type in date(YYYY,MM) instead of the timestep index number.

Spans are a sequence of time steps, e.g. past six months in a monthly model would be t-6:t-1.

Spans always need to be aggregated, e.g. wrapped in a sum or avg function.

All: returns the sum of all time steps for a variable.

Shows a formula in Lucanet xP&A: sum('Products sold' (all)).
Using 'All' in a formula

Span with a custom start/end-point

  • E.g. first 6 days/weeks/months/years of your model: 0:5 (absolute)
Shows a formula in Lucanet xP&A: sum('Products sold' (first 6 months)).
Using a span ('first 6 months') in a formula
  • Past three days/weeks/months/years (relative, useful for rolling averages)
Shows a formula in Lucanet xP&A: sum('Products sold' (last 3 months)).
Using 'last 3 months' in a formula

Dimension modifiers in Lucanet xP&A allow you to slice and dice referenced variables within formulas, using the related dimensions and dimension items.

You can use the following dimension modifiers in Lucanet xP&A to modify referenced variables within formulas:

Once you have linked dimensions together in Lucanet xP&A, you can then easily slice variables along different dimensions.

Example: We have an Employee dimension, which is linked to a Team dimension. By default, we've worked out Salaries by Employee, and now we're interested in seeing Salaries by Team.

Click on the Dimension icon in the referenced variable in the formula, and then select the desired dimension and click Group by.

Shows the category menu in Lucanet xP&A with 'Group By' highlighted in red, above a 'FILTER BY' list of items including 'CEO', 'CTO', 'Software Engineer', 'Senior Software Engineer', 'Business Operations Associate', 'Product Designer', 'Account Executive', and 'Marketing Lead', with the 'Total payroll cost by Department this month' formula and the 'Employee', 'Currency (1)', 'Status', 'Title', and 'Department' dimensions visible behind it.
Using 'Group by'

If you want to "Group by" multiple dimensions at one time just hold down Shift and click each of the dimensions you want to select. e.g. if you want to group by Team and then Role. This displays as multiple layers of nesting.

Sometimes you'll want to select a single item from a dimension and use it in a formula in Lucanet xP&A.

Click the Dimension icon in the referenced variable in the formula, select the desired dimension, and then click the individual item you want to filter by.

Example: If you want to do a calculation only based on the Engineering Team's salaries, you would select Engineering under Department.

Shows the category menu in Lucanet xP&A with 'Engineering' highlighted in red in the 'FILTER BY' list, alongside 'Customer Success', 'Executive', 'Finance', 'Human Resources', 'Marketing', 'Product', and 'Sales', with the 'Total payroll cost by Department this month' formula and the 'Employee', 'Currency (1)', 'Status', 'Title', and 'Department' dimensions visible behind it.
Filtering by category item

If you want to filter for multiple dimension items, just hold down Shift and click each of the dimension items you want to select.

Sometimes you might want to aggregate away a dimension in Lucanet xP&A, if you no longer care to see that level of granularity.

Example: If you have filtered Salary by Employee for just the Engineering team, but no longer care to see the Employee breakdown, you can aggregate the Employee dimension.

Use the two commands Aggregate (Sums across dimension) and All (Keep dimension intact) to remove or re-add the breakdown of a dimension. To do this, click on the variable in the top bar:

Shows the formula bar in Lucanet xP&A for 'sum( Personell costs by Employee previous month )' highlighted in purple, with the 'DIMENSIONS' panel showing 'Employee', and the 'All' ('Keeps dimension intact') and 'Aggregate' ('Sums across dimension') options highlighted in red.
Aggregating away a category

There are a few other ways that you can use or manipulate dimensions and dimension items within variables and formulas in Lucanet xP&A, that are not variable modifiers in formulas.

Sometimes you might want to change how a variable aggregates its dimension items. xP&A's default is to sum the dimension items, but see Dimension aggregation for more options.

This content was generated using AI and reviewed by Lucanet subject matter experts before publication.