Selecting and Setting Up Data Sources

Data sources determine the objects, based on which a calculation block will be executed.

Data sources can be selected and set up on the Sources page in the calculation block editing wizard:

To select and set up a data source:

  1. Click the Add button. The object selection dialog box opens, in which specify the data source.
    The following repository objects can be used as data sources:

  2. Select calendar role. By default a calendar is considered as a calendar dimension and it cannot be used to set up links. To work with calendar as a standard dimension, select the calendar checkbox located next to the data source name. Calendar will be displayed in the list of source dimensions and it can be used as a standard dimension. To use calendar as a calendar dimension, deselect the Calendar checkbox.

  3. Set up links between data source and data consumer dimensions. The links set correspondence between data source dimensions and data consumer dimensions therefore reduce the number of calculated elements and speed up block calculation.
    To set up links, click the Set Up button. The Set Up Links dialog box opens, in which set links. To automatically set up links by attribute identifiers in the same source and consumer dimensions, click the Link All button.

As a result, the data source is added and set up. If required, similarly add other data sources.

To delete the data source, click the Delete button. If the data source is used in calculation formulas, the confirmation dialog box opens on data source deletion:

Select the operation:

Setting Up Links Between Data Source and Data Consumer Dimensions

The links set correspondence between data source dimensions and data consumer dimensions therefore reduce the number of calculated elements and speed up block calculation.

To set up links between data source and data consumer dimensions, use the Set Up Links dialog box. A link can be set up in various modes: simple and advanced. The dialog box look differs depending on the setup mode:

Setup order:

NOTE. if the calculation block is editable and no links are created for the data source dimension, and this data source is already used in block calculation formulas, a warning is displayed on creating a link that this dimension will be deselected in formula operands. Thus, formulas are calculated by one dimension. To continue creating a link and deselect the dimension in the formula, click the Yes button; to abort creating a link, click the No button.

TIP. Use the first element offset or the last element offset to specify that you want to use only one element from multiple elements obtained by the link. For example, multiple child elements are obtained for each element by the link X.KEY = X.PARENT_KEY. To avoid aggregation of these values and simply take value of the penultimate element, select the Last Element value in the Type column and specify the -1 value in the Lag column.

As a result, the link by attributes between dimensions is set. If required, similarly add other attribute links.

To automatically add all possible links based on:

To delete links between attributes, click the button at the end of appropriate strings.

If a calculation block is edited and the deleted link is the only one for data source dimension, and the data source is already used in block calculation formulas, the Delete Link dialog box opens:

Select a method for fixing selection by this dimension in calculation formula operands:

Examples of Work of Data Source and Data Consumer Link

The example displays functioning of the link with different behavior and offset. The dimension in used are abstract and are used to show how links work. The dimensions selection is based in table MDM dictionaries that are basis for these dimensions.

Examples of Behavior

For example, the data consumer contains the Indicators dimension and the data source contains the Countries dimension. The dimensions contain the following data and the following selection:

A link is set up between the Key attribute in the Countries dimension and the Country Key attribute in the Indicators dimension:

Consider the selection that will be used in the calculation block on different link behavior:

Examples of Offset

For example, the data consumer contains the Indicators dimension and the data source contains the Countries dimension. The dimensions contain the following data and the following selection:

A link is set up between the Key attribute in the Countries dimension and the Country Key attribute in the Indicators dimension:

Consider the selection that will be used in calculation block if the link uses the offset with different values:

See also:

Inserting and Setting Up Calculation Blocks