Formula Execution

This section defines the types of calculations and calculation sequences used during different analytic processing routines. 

Cube Processing

Calculation: This runs the standard calculation sequence for a single Data Unit. A Data Unit refers to a group of data cells for a specific Cube, Entity, Parent, Consolidation, Scenario, and Time member. See "Data Units" in the Workflow Guide for more details on Data Units.  Except for dynamic cell calculations, all Member Formulas are written to run as part of a Data Unit Calculation Sequence.

Translation: This runs a currency translation that occurs when the data for an Entity’s local currency needs to be translated to a foreign currency. The translation step runs after the system has run the Data Unit Calculation Sequence for an Entity’s local currency. After this is completed, the default translation algorithms use foreign exchange (FX) rates to generate and store a corresponding translated Data Unit. The Data Unit Calculation Sequence on the translated Data Unit is run to produce the final translated amounts.

Consolidation: The analytic engine provides pre-built financial intelligence through a statutory Consolidation dimension that defines a sequence of Data Unit calculations and aggregations that include currency translations, parent-level adjustments, complex ownership computations, and intercompany eliminations. See Consolidation.

Dynamic Cell Calculation: Dynamic cell calculations are a special type of Member Formula for Account, Flow, or User Defined members. They are used to generate amounts for a member on the fly (the results are calculated on-demand not stored).  Dynamic cell calculations are often used for metric accounts, for example, ratios involving other accounts, and are appropriate when the result of the dynamic calculation is not needed as the source number for another stored calculation. The use of dynamic cell calculations can result in improved consolidation performance because they do not generate stored numbers and are typically only run when a number needs to be displayed, not during the consolidation process.

Data Units and Formula Process

OneStream runs formulas at a specific unit of work call a Data Unit. This section details the order and combination of logical processes that run for a Data Unit.  See Using Data Units in the Workflow Guide .

Guidelines on Formula Passes: There are 16 formula passes and one dynamic calculation formula type available on each member.  Formulas that do not depend on one another can exist in the same formula pass and will be calculated in parallel using the OneStream advanced parallel formula processing engine. As a basic guideline, customers should think about organizing formulas by account and collection type across the available formula passes using the following examples.

Formula Pass 1 - 8: Trial Balance

Formula Pass 5 - 7: Translation logic related to Cash Flow

Formula Pass 8 or 9: Balance Account and CTA account

Formula Pass 9 - 16: Non-trial Balance

All formulas in a pass are processed at the same time, so they cannot have dependencies on one another.   

Calculation Sequence of a Single Data Unit: The following items detail the specific list of tasks run for each Data Unit calculation process.  As an example, the following steps are run for a single Data Unit when a user selects Calculate for a single Entity, Scenario, and Time period.

Data Unit Calculation Sequences (DUCS)

  1. Clear previously calculated data for the Data Unit.

  2. Run the Scenario Member Formula, which is typically used for seeding Scenario data from another Scenario or from a prior year.

  3. Run reverse translations by calculating Flow members from other Alternate Currency Input Flow members. This is part of the built-in ability for an Entity to accept input using multiple currencies.

  4. Run business rules (1 and 2). Up to 8 business rule files can be attached to each cube.

  5. Run formula passes (1–4) for the Account Dimension members on the cube, then Flow members, and then User Defined members. The formula pass is specified using the Formula Type property for each member in the Dimension Library.

    • Account, Flow, UD1, UD2, … UD8 (run Member Formula)

  6. Run business rules (3 and 4).

  7. Run formula passes (5–8).

    • Account, Flow, UD1, UD2, … UD8 (run Member Formula)

  8. Run business rules (5 and 6).

  9. Run formula passes (9–12).

    • Account, Flow, UD1, UD2, … UD8 (run Member Formula)

  10. Run business rules (7 and 8).

  11. Run formula passes (13–16).

    • Account, Flow, UD1, UD2, … UD8 (run Member Formula)

Every time a data cell is written to the database, information with the stored cell about how it was stored, for example,manually entered, calculated, or consolidated, is included.  If a number was calculated and stored as a result of a formula, it will always get cleared regardless of the metadata settings.  The AllowInput property specifies whether a cell can be written to and therefore if a formula stored a number. There would be information if the cell was calculated.  If AllowInput is set to True and a new number is typed over the same cell, it is stored as manually entered instead of a calculated cell.

Formula for Statutory Consolidation Sequence

The consolidation process is run for a hierarchy of Entities.See Consolidation.

Formula Level Controls

In addition to the Cube-level settings described, VB.NET If statements are often used in a formula to run only for certain types of Data Units. The most common usage is to contain checks for base-level Entities and local currencies. The following If statement will cause the formula to run only for base-level Entities and the default currency of the Entity. This is often used when the results of the calculation in the base-level Entity is intended to be consolidated to parent-level Entities.

Copy
If ((Not api.Entity.HasChildren()) And (api.Cons.IsLocalCurrencyForEntity())) Then
End If