To work with the tool in Foresight Analytics Platform 10, use the new interface.

Algorithm Calculation

To calculate an algorithm:

  1. Set calculation dates and parameter values on the parameters panel.

  2. Set up calculation execution using the Set Up Calculation Execution dialog box.

Open the dialog box

Set parameters:

To correct the specified formula, click the Stop button, after which algorithm calculation will be stopped. Manually edit the formula and recalculate the algorithm.

To skip the error, click the Skip button. After this calculated elements will be skipped and the calculation result is the empty value.

If the checkbox is deselected, arithmetic operations in formulas are not checked. If there is a division by zero, calculated elements are skipped and the calculation result is an empty value.

NOTE. It is possible to not check arithmetic operations if calculation formula is correct and the calculation result can contain empty values.

Formula calculation schemes

NOTE. The checkbox is available if the calculation algorithm contains calculation blocks and control blocks , for which calculation formulas are set.

If the Pointwise Calculation checkbox is selected for specific calculation formulas, calculation can be executed using several methods. Formula calculation methods are given on the schemes below.

Formula calculation schemes

If a calculation formula contains elements of version dictionary element values on algorithm calculation will be equal for each calendar point.

IMPORTANT. The parameter use decreases performance, and algorithm calculation takes more time.

If a calculation algorithm contains aggregation blocks, aggregation mode for one calendar point is not possible when algorithm pointwise calculation is used. Select aggregation block calculation method using the radio buttons:

NOTE. The order of aggregation blocks calculation in the calculation tree is taken into account only when pointwise calculation is used for specific calculation formulas. When pointwise calculation of algorithm is used, the order of aggregation block calculation depends on the selected calculation method.

To apply the specified parameters, click the Apply button.

  1. If in different blocks different selection of the same source is used, select the Load Data Separately from the Rest checkbox in the context menu of the blocks in calculation tree. In this case, separate data loading is more quickly and reduces the total algorithm calculation time. The checkbox is available for all block types.

  2. Calculate the whole algorithm or calculate single blocks.

After executing the operations, the algorithm is calculated and the dialog box displays results. If an error occurred on calculation, the corresponding message is displayed.

TIP. To speed up algorithm calculation, see the How to Speed Up Algorithm Calculation? section.

Calculating Whole Algorithm

To calculate the whole algorithm:

Algorithm calculation will start. To stop algorithm calculation, click the Stop button in the Start Calculation group on the Calculation ribbon tab.

TIP. To deny algorithm calculation stop, see the How to Deny Calculation Algorithm Stop? section.

During calculation, all algorithm objects can be read. For example, the user can check calculation block settings or open block calculation results in the Analytical Queries (OLAP) tool.

After the calculation is completed, the Calculation Results dialog box containing algorithm calculation results opens. For example:

For details about algorithm calculation results, click the Details button. The details about algorithm calculation results are displayed as a table:

The table contains the following columns:

If required, copy the table with calculation results using the Copy to Clipboard button.

To hide details, click the Hide button.

If an error occurred on calculation, the corresponding message is displayed.

NOTE. If the calculation algorithm structure contains branchings, branch execution conditions are checked on algorithm calculation. As a result of check, only the data sources are loaded, which are specified for objects contained in the branches satisfying the conditions. This optimization speeds up data loading.

Calculating Single Blocks

To calculate only selected blocks:

  1. Select the blocks to be calculated in the working area or calculation tree.
    To select several blocks in the working area, use the SHIFT key, in the calculation tree - the CTRL or SHIFT key.

  2. Click the Calculate Selected button in the Start Calculation group on the Calculation ribbon tab.

After the calculation is completed, the dialog box containing results opens. If an error occurred on calculation, the corresponding message is displayed.

See also:

Getting Started with the Calculation Algorithms Extension in the Web Application | Working with Ready Calculation Algorithm | How to Execute Multithreaded Calculation?