Professional Documents
Culture Documents
com
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 1
http://learnhyperion.wordpress.com
Rules Introduction
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 2
http://learnhyperion.wordpress.com
To create rules, you should be familiar with these basic principles about
objects:
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 3
http://learnhyperion.wordpress.com
WHERE AS IN CONTRAST
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 4
http://learnhyperion.wordpress.com
The following table lists the functions by object for Financial Management rules:
HS
AppSettings
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 5
http://learnhyperion.wordpress.com
Account
Currency
Data Unit
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 6
http://learnhyperion.wordpress.com
Custom 1 to 4
Entity
ICP
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 7
http://learnhyperion.wordpress.com
NODE
Parent
Period
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 8
http://learnhyperion.wordpress.com
Scenario
Value
View
Year
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 9
http://learnhyperion.wordpress.com
• Calculating data
• Consolidating data
• Setting accounts to read-only
HS.Exp Function
The most frequent use of a rule expression is assigning values to accounts. Use
the HS.Exp function to assign values to accounts.
Account Expressions
Account expressions identify cells in the database by specifying one or more
dimension members. The Exp function requires an account expression on the
left (destination) side of the equal sign. The right (source) side of the equal
sign can be an account expression, a constant value, or any function that
returns a numeric value.
Dimension Keywords
An account expression uses a dimension keyword to specify a value or a set of
values. A dimension keyword is separated from its values by a pound or hash
sign (#), and dimensions are separated by dots. For example:
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 10
http://learnhyperion.wordpress.com
Dimension Keywords
The following table lists the dimension keywords that you can use to specify
dimension members:
Keyword Dimension
S# Scenario
Y# Year
P# Period
V# Value
E# Entity
W# View
A# Account
I# Intercompany Partner
C1# Custom1
C2# Custom2
C3# Custom3
C4# Custom4
Destination Expressions
The destination for the Exp function is specified by the Account, Custom, and
ICP members specified on the left side of the equal sign. The destination
Entity, Period, Year, Value, members are determined by the current point of
view (POV) members or by the cells selected on the data grid or form. The
members for the currently selected cells on the grid override the current POV
members. The destination View member is the current scenario default view,
regardless of the currently select POV members.
Source Expressions
When you use an account expression on the right side of the equal sign with
Exp, you can specify any dimension member. If you do not specify a Entity,
Period, Year, or Value dimension member, the current POV member or the
current cells selected on the grid or data form are used. If you do not specify a
View member, the source is the current scenario default view, regardless of
the currently select POV member.
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 11
http://learnhyperion.wordpress.com
You can add, subtract, multiply, and divide on the right side of the equal sign.
You must use the following standard VBScript characters: + - * /
If you multiply or divide with an account that has a NoData status, the data in
the account on the left side of the equal sign is not changed. Zero is considered
data. An account that contains 0.00 as data does not have a NoData status.
The following example sets the amount in the StateTax account. This example
calculates the StateTax amount by multiplying the amount in the Sales account
for 2010 by the rate in the StateRate account for 2010:
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 12
http://learnhyperion.wordpress.com
Keyword Description
Cur :Current period or year
First :First period or year that is valid for the application
Last :Last period or year that is valid for the application
Next :Period or year that follows the current period or year
Prior :Period or year that precedes the current period or year
• Dynamic rules enable you to create ratios that accurately calculate parent
values for the Period, View, and custom dimensions. Parent values for
percentages for these dimensions are not accurately calculated by the
aggregation of base member values.
• Translate rules execute when you perform translations. These rules can
override default translation calculations.
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 13
http://learnhyperion.wordpress.com
• Allocation rules execute when you allocate data from a single source to
multiple destinations.
• Input rules enable input at the parent entity level.
• No input rules prevent input at the base entity, account, and custom level.
• Consolidate rules perform nonstandard consolidations. These rules are most
commonly found in statutory applications.
• Transactions rules enable posting to accounts and scenarios from the
Intercompany Transactions module.
The routines are created in any order. Use the following syntax to define
each routine:
Sub Calculate( )
<All calculate rules are displayed here.>
End Sub
Sub Translate( )
<All translate rules are displayed here.>
End Sub
Sub Allocate( )
<All allocation rules are displayed here.>
End Sub
Sub NoInput( )
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 15
http://learnhyperion.wordpress.com
Sub Consolidate( )
<All consolidation rules are displayed here.>
End Sub
Sub Input
<All input rules are displayed here.>
End Sub
Sub Dynamic( )
<All dynamic rules are displayed here.>
End Sub
Sub Transactions( )
<All translation rules are displayed here.>
End Sub
Inserting Line Continuations
Line Continuation:
Uses an ampersand (&) for concatenation
Uses an underscore (_) for line continuation
Note: You must have a space between the ampersand and the underscore.
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 16
http://learnhyperion.wordpress.com
If…Then…Else
Select Case…Else
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 17
http://learnhyperion.wordpress.com
The example applies the ElseIf statement if the scenario member is equal to
Actual instead of Budget. If equal (true), a calculation divides Sales by
UnitsSold and applies the result to Price. If the scenario is any member other
than actual or budget, the calculation following the Else statement is
performed.
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 18
http://learnhyperion.wordpress.com
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 19
http://learnhyperion.wordpress.com
A Select Case structure works with a single test expression that is evaluated
once, at the top of the structure.
The result of the expression is then compared with the values for each Case in
the structure.
If there is a match, the block of statements associated with that Case is
executed, as in the following example.
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 20
http://learnhyperion.wordpress.com
UCase Function
Returns a string that was converted to uppercase.
Syntax
UCase(String)
Arguments
String: A text string or a function that returns a text string.
Example
If UCase(HS.Scenario.Member)=”ACTUAL” Then
Only lowercase letters are converted to uppercase; all uppercase letters and
nonletter characters remain unchanged.
LCase Function
Returns a string that was converted to lowercase.
Syntax
LCase(String)
Example
If LCase(HS.Scenario.Member)=”actual” Then
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 21
http://learnhyperion.wordpress.com
Only uppercase letters are converted to lowercase; all lowercase letters and
nonletter characters remain unchanged.
Left Function
Returns a string containing a specified number of characters from the left side
of a string.
A left function contains two required parts:
• Use String to return the requested values.
• Use Length (numeric value) to determine the number of characters to
return.
Syntax
Left(String,Length)
Example
Right Function
Returns a string containing a specified number of characters from the right
side of a string.
A Right function contains two required parts:
• Use String to return the requested values.
• Use Length (numeric value) to determine the number of characters to
return.
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 22
http://learnhyperion.wordpress.com
Syntax
Right(String,Length)
Example
Hyperion Rules Student Guide || BISP || Amit Sharma || Created by : Rupam Majumdar Page 23