| Oracle financial Analyzer User's Guide Release 11i Part No. A87522-01 |
|
Modeling Data, 4 of 6
Model equations can include operators, numeric constants, and condition statements. You can also include functions, which are described in the topic "Modeling Functions".
Operators include the unary minus symbol (-) and the standard binary operators for addition (+), subtraction (-), multiplication (*), and division (/). Conventional rules for evaluating algebraic expressions apply.
If a formula contains multiple subexpressions (distinguished from the main expression by parentheses), the subexpressions are evaluated first; then the main expression is evaluated.
Operators are evaluated from left-to-right using the conventional order of precedence: unary operators (negative symbols) are evaluated first, followed by multiplicative operators (*,/), followed by additive operators (+,-).
Numeric constants are real numbers (decimal numbers) or integers (non-decimal numbers).
Real numbers:
Integers:
You can use models to derive data based on certain conditions. You must use the condition statements IF, THEN, and ELSE. All three statements are required.
In this example, the TAX line item is calculated based on SALES - EXPENSE and a TAXRATE, where, if the result is negative, the tax is zero.
IF SALES - EXPENSE GT 0 THEN (SALES - EXPENSE) * TAXRATE ELSE 0
When typing a command or equation into a model, you can continue it onto another line by ending the partial command with a hyphen and then continuing on the next line.
Note: Financial Analyzer models are limited to one command per If statement.
Note in the following model, the hyphens (-) at the end of the 3rd, 8th, and 9th lines.
if sales - expense gt 0 then conssales * -1 - sales(line 'advert') / lastyrsales (line 'advert') else if gross.profit gt 100 then maint.marg / maint.rev - service.marg / service.rev - . . . else NA
When referring to another financial data item, you must create an alias financial data item. In models, you cannot reference financial data items directly; you must always refer to them using their alias. Although the model will compile if a financial data item is referenced directly, a solve that is based on the model will not run.
Follow this procedure to create an alias for a financial data item.
For example, if you have two financial data items called MAYACTL and APRACTL, and you want to create a formula to see the variance in their data, you must create alias financial data items for them. If the aliases you create are called MMAYACTL and MAPRACTL, the formula in the variance financial data item would be:
MMAYACTL - MAPRACTL
|
|
![]() Copyright © 2001 Oracle Corporation. All Rights Reserved. |
|