EIGENN.
docsguidesapichangelogpricingsign in
EIGENN.

Time references

Read the previous period, a fixed period, a range of periods, or every period with square brackets after a variable name.

A plain variable name reads the value of the same period. To read a different period, put a time reference in square brackets directly after the name, such as Cash[previous]. Use time references for running balances, growth on a prior period, and rolling averages.

Positions count from 0. The first period of the model is position 0. The letter t means the period that Eigenn calculates.

Relative references

A relative reference moves with the period. In each period, it reads a period at the same distance.

ReferenceReads
RevenueThe same period
Revenue[previous]The period before
Revenue[t-12]The period 12 periods before
Revenue[t+1]The next period
Revenue[this] or Revenue[current]The same period

A monthly growth formula:

Revenue[previous] * (1 + Monthly growth rate)

Fixed references

A fixed reference reads the same period in every period.

ReferenceReads
Revenue[0]The first period of the model
Revenue[final]The last period of the model
Revenue[date(2027, 1)]The period of January 2027

Ranges of periods

A range reads many periods. Write the start and the end with a colon between them. Put the range inside a function, such as sum, avg, min, or max.

FormulaGives
sum(Revenue[t-2:t])The total of this period and the two periods before
avg(Revenue[t-11:t])The mean of the last 12 periods
sum(Revenue[0:2])The total of the first three periods
  • A range that starts before the first period uses only the periods that exist. Near the start of the model, a 12-period mean uses fewer periods.
  • A range with the start after the end reads no periods.
  • A range outside a function gives the error "Revenue" reads several periods here — wrap it in sum() or avg().

Every period

Revenue[all] reads every period of the model.

  • As a value, it gives the total of all periods. Revenue[all] / 12 divides the total by 12.
  • Inside a function, the function gets each period. max(Revenue[all]) gives the largest period value.

Actual periods only

last 3 months of actuals reads the three latest actual periods before the current period. Put it inside a function:

avg(Revenue last 3 months of actuals)

The Trailing average of actuals template inserts this form.

A variable that reads itself

A variable can read its own earlier values. For a running balance, write the formula of Cash like this:

Cash[previous] + Net income

If a formula names its own variable without brackets, Eigenn reads the previous period. Cash + Net income on Cash gives the same result. Write [previous] anyway, because the formula is easier to read.

Cash[this] on Cash reads the same period. That gives the error A formula cannot reference itself.

Before the first period

In the first period, [previous] has no period to read. The same is true for [t-12] in the first 12 periods. The result then follows the Blanks in data setting of the variable that you read:

  • Treat as blank gives a blank value.
  • Treat as zero gives 0.

To set a start value, test for blank:

if Customers[previous] = blank then Starting customers else Customers[previous] + New customers

This test needs Treat as blank. The Blanks and helpers page explains blank values.

Older spellings

Older formulas can use previous month in place of [previous], and this month for the same period. Both still work. Some templates insert previous month.

Cohort references

In a model with a cohort dimension, two more references exist. [cohort] reads the period in which the current cohort starts. [t-cohort] reads the period whose position is equal to the age of the cohort. The Common cohort formulas page shows examples.

Related

  • Formula syntax
  • Functions
  • Blanks and helpers
  • Common cash and balance sheet formulas
  • Last actual date
  • Time settings
  • Formulas concept

Time granularity

Choose daily, weekly, monthly, quarterly, or yearly periods for a model, and know what happens when you change it.

Time settings

Set the granularity, the model date range, and the fiscal year of a planning model in Model settings.

On this page

Relative referencesFixed referencesRanges of periodsEvery periodActual periods onlyA variable that reads itselfBefore the first periodOlder spellingsCohort referencesRelated

Eigenn docs

current product

Overview
Overview
OverviewAccount PreferencesApproval PoliciesAssistant AutomationAssistant Command CenterAssistant Workspace and Saved WorkBank ConnectionsBilling and UsageBudgets and ForecastCommand CenterCustomer FieldsCustomer LifecycleCustomer RecordsCustomersDeveloper PlatformDocument Processing and ExtractionFiles and Document VaultFinancial Analytics and ReportsFinancial OverviewInbox and ApprovalsInvoice InsightsInvoice ProductsInvoicesMarketplace IntegrationsNotifications and BrandingOnboarding and SupportOverviewPlanning Data and DimensionsPlanning Models and FormulasPlanning Time and ActualsPlanning UncertaintyPlanning Versions and CollaborationPlanning Views and ExportsPlans and AdjustmentsReceivablesReceivables AnalyticsReceivables ControlsRolling Budget CloseScenario PlanningSecurity and AccessSettings OverviewStress TestsTeams and OrganizationsTone Profiles and ExperimentsTransaction Categories and RulesTransaction CodingTransactionsWeekly Finance RitualWorkflow ExecutionsWorkflow OutcomesWorkflow PausesWorkflows
OverviewBudget vs. ActualsBuild a Driver-Based Planning ModelBuild and Review a ForecastBuild Your First WorkflowCollaborate on a Planning ModelCompare and Share Planning ScenariosConfigure Approval PoliciesConfigure Assistant OperationsConfigure Customer FieldsConfigure Notifications and BrandingConfigure Planning Time and ActualsConfigure Receivables ControlsConnect Planning Data and ActualsConnect Transaction RecordsConsolidationCreate and Manage CustomersCreate and Send InvoicesCreate Your First Planning ModelDeveloper API SetupFirst Cash ReviewHeadcount PlanningInvoice Collection WorkflowMaintain Transaction RulesManage Security and BillingManage Team AccessManage the Invoice LifecycleMCP WorkflowsMonitor and Recover WorkflowsOrganize and Share DocumentsProcess Inbox ItemsReconcile and Categorize TransactionsRevenue ForecastingReview a Customer Finance RecordReview, Restore, and Export a Planning ModelRun a Finance Operating ReviewRun a Receivables Tone ExperimentRun a Runway Stress TestRun Planning Uncertainty AnalysisRun Your First Command Center ReviewSave and Share Assistant WorkSet Up a WorkspaceTroubleshoot Account AccessWebhook DeliveryWeekly CFO Review
Overview

Concepts

DataDimensionsFormulasScenarios

Variables

VariablesChange an input over timeCreate a variableFormat a variableOrganize variablesTime totalsUse a variable from another modelVariable types

Time

TimeLast actual dateRoll the model forwardTime granularityTime settings

Formulas

FormulasBlanks and helpersCommon formulas: cash and balance sheetCommon formulas: cohortsCommon formulas: currency and multiple entitiesCommon formulas: headcount and payrollCommon formulas: SaaS metricsCommon formulas: seasonalityConditionalsDimension referencesFormula syntaxFunctionsTime referencesTroubleshoot formulasValues with uncertaintyWrite a formula

Charts and Dashboards

Charts and dashboardsCompare scenarios and versionsCreate a chartExport and shareTablesTime aggregation in charts

Dimensions

DimensionsApply a dimensionCreate a dimensionDimension examplesDimension totalsThe Dimensions page

Data

DataChoose cash or accrual for XeroConnect a data sourceLink a variable to dataRefresh and check actualsUse transaction categories as actuals

Data Integrations

Data integrationsBank transactionsCSV importFortnoxQuickBooksStripeXero

Views

ViewsCreate and edit a viewFilter a viewShare a view

Versions

VersionsCompare versionsRestore a versionSave a version

Scenarios

ScenariosCompare scenariosCreate a scenarioPlans and adjustmentsStress tests and shocks

Collaboration

CollaborationComment on a modelShare a model and set accessTeam roles and planning access

Managing Models

Managing modelsDuplicate a modelExport a modelModel limits and performanceStart from a templateThe models home and foldersTrash, restore, and delete a model
OverviewIntegrationsMCPSDKsWebhooks
OverviewAuthenticationBank Accounts APICustomers APIErrorsForecasts and Stress Tests APIInvoice Payments APIInvoices APIPaginationRate LimitsRemote Tracker API StatusTracker Categories APITracker Entries and Timers APITracker Projects APITransactions APIWebhooks API StatusWorkflows API
Overview
Overview