Cell-level calculations in the Line Definition Formula field (and thereby the Calculation dialog window) are fundamentally constructed using the period (.) to delineate between column and line “Code” cell reference values. The calculation (or “placement”) is then constructed in the Line Definition Formula field referencing these cell coordinates.
Command Syntax:
[Column Definition Code].[Line Definition Code]
[Column Definition Code].[Line Definition Code] / [Column Definition Code].[Line Definition Code]
EXAMPLE:
[D].[1114]*100
This references a column and row code value in a calculation which can be “placed” it in another cell (column) location on the report.
-OR-
[A].[FIRST]+[B].[FIRST]
This uses two different column code coordinates and the same row code to return a calculated value in the column.
SAMPLE REPORT SCENARIO 1:
Based on the first syntax example above, the following details how a column and row code value in a calculation which can be “placed” it in another cell (column) location on the report.
The Line Definition includes the following:
Code |
Segment (Natural Account) |
1114 |
1114 |
1127 |
1127 |
The Column Definition includes the following:
Code |
A |
B |
C |
Type |
Balance |
Balance |
Balance |
Book Code |
Actual |
Actual |
Actual |
Year |
Year |
Year |
Year |
Period |
0 |
1 |
2 |
Value Type |
Periodic |
Periodic |
Periodic |
: |
: |
: |
: |
Formula |
|
[A].[1114]/2 |
|
The report without the calculation in the column Code = ‘B’ would return the following:
Segment (Account) Element |
A |
B |
C |
1114 |
1000 |
2000 |
200 |
1127 |
1500 |
1750 |
2500 |
The report with the calculation in the column Code = ‘B’ would return the following:
Segment (Account) Element |
A |
B |
C |
1114 |
1000 |
500 |
200 |
1127 |
1500 |
500 |
2500 |
In the example above, only the resulting, specific data value of this calculation will displayed on the row/column. (Also, the same value will be placed in each row for column B.)