Separates each partition by creating a number for each one. To do this, the system needs a Granularity field (which separates the partitions from each other) and an Item Number field (which is filled by this rule type).
In the example, we mark the cash flow pattern according to the version number: when the version number increases, we add one to the Item Number. Only the Granularity field (Contract ID) is relevant for the calculation.
Input Data
| Version ID |
Start Date |
Contract ID |
Period From |
Period To |
| 1 |
2019-01-01 |
A |
1 |
3 |
| 1 |
2019-01-01 |
A |
4 |
4 |
| 2 |
2020-01-16 |
B |
1 |
2 |
| 2 |
2020-01-16 |
B |
3 |
8 |
| 3 |
2019-01-01 |
C |
1 |
3 |
| 4 |
2019-01-01 |
D |
1 |
2 |
| 4 |
2019-01-01 |
D |
3 |
8 |
Flow Modeling Configuration
Rules
| Rule |
Description |
Rule Type |
State |
Rule Grouping Fields |
Rule Ordering Fields |
Selection |
| IN |
CF Item Number |
Item Number Generation |
Active |
|
|
|
Rule Line
| Line |
*Item Number Granularity Fields |
*Item Number |
| L1 |
Contract ID |
Item ID |
Key Configuration Description
| Field |
Meaning |
Notes |
| Line |
Identifier of the line |
Must be unique. A single Key Figure Formula Rule can run more lines. |
| Item Number Granularity Field |
Determines the size of one partition of data |
Mandatory input. You have to add the field in the Granularity section of the Signature tab. |
| Item Number |
Fields where the output is written |
Mandatory output. You have to add the field in the Action section of the Signature tab. |
Expected Output
| Version ID |
Start Date |
Contract ID |
Item ID |
| 1 |
2019-01-01 |
A |
1 |
| 1 |
2019-01-01 |
A |
2 |
| 2 |
2020-01-16 |
B |
1 |
| 2 |
2020-01-16 |
B |
2 |
| 3 |
2019-01-01 |
C |
1 |
| 4 |
2019-01-01 |
D |
1 |
| 4 |
2019-01-01 |
D |
2 |