Example: Transfer Structure

This scenario shows how the “Transfer Structure” type transfers the values from the original fields to other fields based on the input tab formula, header settings and rules.

Input
Contract Product Value Date Amount Premium
C1 P10 2016-01-01 100 50
C2 P20 2016-01-07 200 250
C3 P3 2016-01-12 400 500
C1 P10 2016-01-16 50 300
C1 P10 2016-01-01 1,000 400
C2 P20 2016-02-10 150 700

This is the input data of the function, in which it will be enriched by the Transfer Structure function.

In the input tab, there is a formula where the amount is computed: Amount = Amount/2.5

The formula will then be executed first.

Contract Product Value Date Amount Premium
C1 P10 2016-01-01 40 50
C2 P20 2016-01-07 80 250
C3 P3 2016-01-12 160 500
C1 P10 2016-01-16 20 300
C1 P10 2016-01-01 400 400
C2 P20 2016-02-10 60 700

In the header portion, it is stated that characteristics are grouped. That is why in the input, the characteristics that are the same will be grouped. You can see that rows 1 and 5 are the same so they will be grouped. Then the key figures will be summed up.

Contract Product Value Date Amount Premium
C1 P10 2016-01-01 440 450
C2 P20 2016-01-07 80 250
C3 P3 2016-01-12 160 500
C1 P10 2016-01-16 20 300
C2 P20 2016-02-10 60 700

The aggregated characteristics with the key figures being totaled is already shown in row 1.

In our first rule, we have a selection of contract C1 and P10 (rows 1 and 4) and it has a source field in the action tab where the Amount field is selected.

In our second rule, we have a selection of contract C2 and P20 (rows 2 and 5) and it has a source field in the action tab where the Amount field is selected.

Contract Product Value Date Amount Premium
C1 P10 2016-01-16 20 300
C1 P10 2016-01-01 440 450
C2 P20 2016-01-07 80 250
C2 P20 2016-02-10 60 700

Here the rules will kick in and will perform the following formulas where it is mentioned that in the first rule the field Premium 1 will now be equivalent to Amount.

In the second rule the field Premium 2 will be equivalent to Amount.

Contract Product Value Date Amount Premium Premium 1 Premium 2
C1 P10 2016-01-16 20 300 20 0
C1 P10 2016-01-01 440 450 440 0
C2 P20 2016-01-07 80 250 0 80
C2 P20 2016-02-10 60 700 0 60

In the header portion, it is stated that fields that will be retained will be the following: All fields except Selection & Action->Source Fields.

This means that fields within the selection and the source fields in the action will be excluded from the output (columns Contract, Product and Amount will be excluded in the output).

Final Output
Value Date Premium Premium 1 Premium 2
2016-01-16 300 20 0
2016-01-01 450 440 0
2016-01-07 250 0 80
2016-02-10 700 0 60