Sunteți pe pagina 1din 59

rig

ht

op
y

20
12

TG

|D

N
ot

te

is
tri
bu

Agenda
Marketing Technologies Group | www.mtgny.com

te

is
tri
bu

N
ot

|D

TG

20
12

rig
ht

Advantages of Essbase calculations


Outline calculations and calc scripts
Global calculations and the Essbase calc cycle
Syntax basics
Formulas and intersection names
Crossing dimensions and the calc Point of View
Most useful commands and functions
Simple allocation example
op
y

Visit our Event Calendar at mtgny.com for links to upcoming


presentations as well as previously recorded sessions.

rig
ht

op
y

20
12

TG

|D

N
ot

te

is
tri
bu

Advantages
Marketing Technologies Group | www.mtgny.com

Centralized data is more


secure
Easier to validate
Very scalable
Global formulas are fast,
easy and consistent
Rich set of analytics
functions
Easy to create sophisticated
reports
D

N
ot

is
tri
bu

te

op
y

rig
ht

20
12

TG

|D

Caution: Always Experiment On A Copy

It Starts with a Calc Script


Marketing Technologies Group | www.mtgny.com

te

is
tri
bu

N
ot

|D

TG

M
20
12

rig
ht

op
y

Most Essbase calculations are batch


But there are also dynamic calcs
The default calc is just Calc All;
Which calculates the entire database

Two Types of Outline Calculations


Marketing Technologies Group | www.mtgny.com

calcs are created/edited in the Outline Editor


Consolidations based on hierarchies
Member formulas
Calc All; executes all hierarchy consolidations and all
member formulas

op
y
C

Hierarchy

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Outline

Member formula

Essbase Calculation Cycle


Marketing Technologies Group | www.mtgny.com

loops through every dimension


calculating each cell in a specific order

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Essbase

Default Calc
Marketing Technologies Group | www.mtgny.com

te

is
tri
bu

20
12

rig
ht
op
y
C

TG

N
ot

Calc All;
Execute from EAS, Spreadsheet, MaxL
Calculates all outline formulae and hierarchies
Can be customized
Essbase loops through all dimensions touching every
cell in order
|D

Custom Calc Scripts


Marketing Technologies Group | www.mtgny.com

te

is
tri
bu

N
ot

|D

TG

M
20
12

rig
ht

op
y

Restrict calculation to a subset of the database


Provide procedural control of calculation order
More functions and commands
Allow for alternate calculations

Custom Calc Scripts


Marketing Technologies Group | www.mtgny.com

can create custom calc


scripts in the Calc script
Editor

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

We

Syntax Basics (abbreviated)


Marketing Technologies Group | www.mtgny.com

te

is
tri
bu

20
12

rig
ht

op
y

TG

|D

Not case sensitive (a few exceptions)


Semicolon terminator (Sales = Price * Units;)
Member names with spaces or numerics need
double quotes (e.g. 2012 or Total Expenses)
Comparison uses == (e.g. IF(Sales==0))
-> specifies intersection (e.g. Jan->Sales)
Calc Member Blocks ( see other webcast)
N
ot

Cell Names and Intersections


is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

op
y

rig
ht

20
12

TG

|D

N
ot

Spreadsheets
store data in
intersections
named using row
numbers and
column letters

Essbase Uses Business Descriptions

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

op
y

rig
ht

20
12

TG

|D

Essbase names
intersections using
business
descriptions
(member names)

Two Dimensional Model


Marketing Technologies Group | www.mtgny.com

is
tri
bu

te

Income Statement
Actual
o
|D
TG
M
20
12

rig
ht

op
y

Sales
Cost Of Sales
Gross Profit
SG&A
Corp. Overhead
Profit Bef. Tax
Tax
Net Incom e

N
ot

Jan Feb Mar ... Dec

100

Dec -> Net Income

Three Dimensional Model


is
tri
bu

Income Statement
Variance

te

Marketing Technologies Group | www.mtgny.com

Jan Feb Mar ... Dec

N
ot

Income Statement
Sales
Budget Cost Of Sales

op
y

rig
ht

20
12

TG

|D

Feb Mar ... Dec


GrossJan
Profit
Income Statement
Sales
SG&A
Actual Cost Of Sales
Corp. Overhead
Feb Mar ... Dec
GrossJan
Profit
Profit Bef. Tax
Sales
SG&A
Tax
Cost Of Sales
Corp. Overhead
Net Incom e
25
Gross Profit
Profit Bef. Tax
SG&A
Tax
Corp. Overhead
Net Incom e
75
Profit Bef. Tax
Tax
Net Incom e
100
100
Actual -> Dec -> Net Income

A Five Dimensional Model


Marketing Technologies Group | www.mtgny.com

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Needs 5 coordinates in the cell name

All Region->All Products->Actual->Dec->Net Income

Visual Approach to Calculations


Marketing Technologies Group | www.mtgny.com

op
y

is
tri
bu

rig
ht

20
12

TG

|D

N
ot

a spreadsheet view
Analyze the cell names

te

Create

Jan->Actual->Margin = Jan->Actual->Sales - Jan->Actual->COGS


Feb->Actual->Margin = Feb->Actual->Sales - Feb->Actual->COGS
Margin =
SalesCOGS

Writing Member Formulas


Marketing Technologies Group | www.mtgny.com

op
y

rig
ht

20
12

TG

Jan->NY->Margin = Jan->NY-> Sales


-Jan->NY-COGS;

|D

N
ot

is
tri
bu

te

In a three dimensional database


Jan->NY->Margin will calculate one cell

Fewer Co-ordinates Increases Scope

TG

NY->Sales
NY->COGS;

op
y

rig
ht

20
12

NY->Margin=

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

Fewer Co-ordinates Increases Scope

TG

Sales
COGS;

op
y

rig
ht

20
12

Margin=

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

Specifying Multidimensional Ranges


Marketing Technologies Group | www.mtgny.com

members names from


more dimensions reduces the
range calculated

is
tri
bu

te

Adding

20
12

TG

|D

N
ot

Sales

op
y

rig
ht

Actual->Sales

Jan->Actual->Sales

Left Side Point of View Is Passed To The


Right Side
Marketing Technologies Group | www.mtgny.com

Every cell reference requires a complete set of co-ordinates (1 for each


dimension)

|D

N
ot

If you omit any co-ordinate Essbase implicitly matches the cell being
calculated

M
20
12

Sales-

COGS;

Margin =

TG

You type:

rig
ht

Essbase Calculates:

op
y

Jan->Actual->Margin = Jan->Actual->Sales - Jan->Actual->COGS;


Feb->Actual->Margin = Feb->Actual->Sales - Feb->Actual->COGS;
C

is
tri
bu

te

(all the months and all the scenarios)

Implied Relative References


Marketing Technologies Group | www.mtgny.com

Margin =

Sales -

COGS

is
tri
bu

te

Jan->Margin = Jan->Sales - Jan->COGS

op
y

rig
ht

20
12

TG

|D

N
ot

Feb->Margin = Feb->Sales - Feb->COGS

Crossing Dimensions with Absolute


References
Marketing Technologies Group | www.mtgny.com

is
tri
bu

te

Cross dimensional operator ->creates an absolute reference. It


overrides the left side POV on the right side
N
ot

NY->Colas->Share = NY->Colas->Sales % Total Market ->Colas-> Sales


Colas->Sales % Total Market ->Colas-> Sales

|D

Colas->Share =

Sales % Total Market

TG

Share =

op
y

rig
ht

20
12

Note: Cross-dims ( ->) on left is not best practice

-> Sales

Order of Calculation: Dimensions


Marketing Technologies Group | www.mtgny.com

The Dense Calc


Accounts Dimension (requires Accounts Dimension property)

2.

Time Dimension (requires Time Dimension property)

3.

Remaining Dense Dimension (in Outline Order)

4.

Two-Pass Calcs (requires Default Calc containing CALC ALL; )

TG

|D

N
ot

is
tri
bu

te

1.

20
12

Remaining Sparse Dimensions (in Outline Order)

op
y

rig
ht

1.

The Sparse Calc

Note: See Demystifying Sparse and Dense webcast

Order of Calculation: Hierarchy

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

Calc Order: 1. Accounts

TG

is
tri
bu

N
ot

Qtr1
-

|D

Mar
675
270
94
51
1
-

20
12

Feb
645
258
90
51
1
-

rig
ht

op
y

L
~
+
+
+
+
+
L
F
F

Measures
Profit
Margin
Sales
COGS
Total Expenses
Marketing
Payroll
Misc
Ratios
Margin %
Profit %

Jan
678
271
94
51
0
-

te

Marketing Technologies Group | www.mtgny.com

Load Data

Calc Order: 1. Accounts

TG

N
ot

is
tri
bu

Qtr1
-

3 Calc Margin for all dense dims


1 Read Sales Data
2 Read COGS Data

|D

Mar
405
675
270
94
51
1
-

20
12

Feb
387
645
258
90
51
1
-

rig
ht

L
~
+
+
+
+
+
L
F
F

op
y

Measures
Profit
Margin
Sales
COGS
Total Expenses
Marketing
Payroll
Misc
Ratios
Margin %
Profit %

Jan
407
678
271
94
51
0
-

te

Marketing Technologies Group | www.mtgny.com

Margin:Consolidate Sales (+) and COGS (-)

Calc Order: 1. Accounts

op
y

TG

3
1
2
7
4
5
6

Calc Margin for all dense dims


Read Sales Data
Read COGS Data
Calc Total Expenses for all dense dims
Read Marketing data
Read Payroll data
Read Misc. data

N
ot

is
tri
bu

Qtr1
-

|D

Mar
405
675
270
146
94
51
1
-

20
12

L
~
+
+
+
+
+
L
F
F

Feb
387
645
258
142
90
51
1
-

rig
ht

Measures
Profit
Margin
Sales
COGS
Total Expenses
Marketing
Payroll
Misc
Ratios
Margin %
Profit %

Jan
407
678
271
145
94
51
0
-

te

Marketing Technologies Group | www.mtgny.com

Total expenses: Consolidate Marketing (+), Payroll (+) and Misc. (+).

Calc Order: 1. Accounts


Marketing Technologies Group | www.mtgny.com

TG

Calc Measures for all dense dims


Calc Profit for all dense dims
Calc Margin for all dense dims
Read Sales Data
Read COGS Data
Calc Total Expenses for all dense dims
Read Marketing data
Read Payroll data
Read Misc. data

te

8
8
3
1
2
7
4
5
6

N
ot

is
tri
bu

Qtr1
-

|D

Mar
259
259
405
675
270
146
94
51
1
-

20
12

L
~
+
+
+
+
+
L
F
F

Feb
245
245
387
645
258
142
90
51
1
-

op
y

rig
ht

Measures
Profit
Margin
Sales
COGS
Total Expenses
Marketing
Payroll
Misc
Ratios
Margin %
Profit %

Jan
262
262
407
678
271
145
94
51
0
-

Profit: Consolidate Margin (+) and Total Expenses (-)

Calc Order: 1. Accounts


Marketing Technologies Group | www.mtgny.com

TG

Calc Measures for all dense dims


Calc Profit for all dense dims
Calc Margin for all dense dims
Read Sales Data
Read COGS Data
Calc Total Expenses for all dense dims
Read Marketing data
Read Payroll data
Read Misc. data
Calc Margin % for all dense dims
Calc Ratios for all dense dims
Calc Profit % for all dense dims

te

8
8
3
1
2
7
4
5
6
9
9
10

N
ot

is
tri
bu

Qtr1
-

|D

Mar
259
259
405
675
270
146
94
51
1
60.0
60.0
38.4

20
12

L
~
+
+
+
+
+
L
F
F

Feb
245
245
387
645
258
142
90
51
1
60.0
60.0
38.0

op
y

rig
ht

Measures
Profit
Margin
Sales
COGS
Total Expenses
Marketing
Payroll
Misc
Ratios
Margin %
Profit %

Jan
262
262
407
678
271
145
94
51
0
60.0
60.0
38.6

Formulas: Margin % Sales, Profit % Sales

Calc Order: 2. Time

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

Two-Pass Calcs
Marketing Technologies Group | www.mtgny.com

Two-Pass calcs are recalculated to correct for


errors created by the default calc order
Set Two-Pass property on members in the outline
Two-Pass calc works on the accounts dim and on
dynamic calcs
If you use a script (other than the default) you must
use the CALC TWOPASS; command
D

N
ot

rig
ht

op
y
C

20
12

TG

|D

is
tri
bu

te

Calculation Order Affects Results

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

Dynamic Calcs
Marketing Technologies Group | www.mtgny.com

te

is
tri
bu

N
ot

|D

TG

M
20
12

rig
ht

op
y

Calculated on retrieval or as precedent


Dynamic Calc Non-Store
Dynamic Calc and Store
Set in Outline Editor

Advantages of Dynamic Calcs

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

Dynamic Calc Rules of Thumb


Marketing Technologies Group | www.mtgny.com

Make all dense calcs Dynamic (Non-Store) with 2


exceptions:
is
tri
bu

te

member with input data


If the order makes the calc wrong
|D

N
ot

Any

TG

Dont use Dynamic Calc and Store


rig
ht

20
12

Clearblock dynamic to update


op
y

Need

Basic Calc Script Commands


Marketing Technologies Group | www.mtgny.com

Calculates the database based


on the outline.

CALC DIM (single or multiple


dimensions listed);

Calculates a single dimension or


multiple dimensions. If all
dimensions are listed it is the
same as a CALC ALL; command.

TG

|D

N
ot

is
tri
bu

te

CALC ALL;

e.g.

op
y

rig
ht

20
12

Calc Dim(All Markets,All Products)

IF & FIX: Controlling Scope in a Calc Script


Marketing Technologies Group | www.mtgny.com

You can focus the calc on a subset using FIX


statements in a script
FIX(Actual)
Calc Dim(Accounts);
ENDFIX
You can test conditions using IF statements
IF(Sales==#Missing)

rig
ht

op
y

20
12

TG

|D

N
ot

is
tri
bu

te

ENDIF

Sales=Units*Price;

Conditional Logic: IF Statements

op
y

is
tri
bu
D
N
ot
o
|D
TG
M
20
12

rig
ht

IF (condition)
commands;
ELSEIF (condition)
commands;
ELSE
commands;
ENDIF;

te

Marketing Technologies Group | www.mtgny.com

Conditional Logic: IF Statements


Marketing Technologies Group | www.mtgny.com

te

is
tri
bu

N
ot

|D

TG

M
20
12

rig
ht

op
y

Outline or script
Script requires calc member block
Loads and tests each specified member
Use on dense dimensions

Controlling Scope with FIX


Marketing Technologies Group | www.mtgny.com

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

FIX (mbrList)
commands
ENDFIX
FIX statement cannot calc the fixed dim
Script only - not outline
Loads only those blocks specified
Passes thru database once per FIX Statement (unnested)
Use multiple fixes on sparse dimensions

FIX(NY)
CALC DIM (Measures,Year);
ENDFIX

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

FIX(NY,NJ)
CALC DIM (Measures,Year);
ENDFIX

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

FIX(NY:CT)
CALC DIM (Measures,Year);
ENDFIX

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

FIX(NY,Apples)
CALC DIM (Measures,Year);
ENDFIX

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

FIX(@CHILDREN(AllMkts))
CALC DIM (Measures,Year);
ENDFIX

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

Hierarchical References
Marketing Technologies Group | www.mtgny.com

te

|D

TG

20
12

rig
ht
op
y
C

N
ot

Relationship Functions - obtain Values


Member Set Functions - return a listing of member
names
Boolean Functions - perform a test (true/false)
based on member names
is
tri
bu

Relative and Absolute References

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

Crossing Dimensions

N
ot

is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

op
y

rig
ht

Crossing 2 Dimensions

20
12

TG

|D

Crossing 1 Dimension

Relationship Functions Obtain Values


Marketing Technologies Group | www.mtgny.com

[, mbrName])

te

@PARENTVAL(dimName

[, mbrName])
N
ot

is
tri
bu

@ANCESTVAL (dimName, genLevNum

|D

@MDPARENTVAL (dimCount,

TG

dimName1, . ... .
[,mbrName])

20
12

dimNameX

rig
ht

@MDANCESTVAL (dimCount,
C

op
y

dimName1, genLevNum1. .
dimNameX, genLevNumX
[,mbrName])

@ParentVal( )
Marketing Technologies Group | www.mtgny.com

is
tri
bu

te

@PARENTVAL(dimName [, mbrName])

op
y

rig
ht

20
12

TG

|D

N
ot

Share = Sales % @PARENTVAL(AllMkts ,Sales

);

@AncestVal( )
Marketing Technologies Group | www.mtgny.com

, Sales

);

op
y

rig
ht

20
12

TG

|D

N
ot

Share = Sales % @ANCESTVAL (AllMkts,

is
tri
bu

te

@ANCESTVAL (dimName, genLevNum [, mbrName])

genLevNum
> 0 = Generation
< 0 = Level
0 = Level

@MDParentVal()
Marketing Technologies Group | www.mtgny.com

is
tri
bu

te

@MDPARENTVAL (numDim, dimName1, . ... . dimNameX [,mbrName])


, All Regions, All Products,Sales

op
y

rig
ht

20
12

TG

|D

N
ot

Share= Sales/@MDPARENTVAL ( 2

);

@MDAncestVal()
Marketing Technologies Group | www.mtgny.com

@MDANCESTVAL (dimCount, dimName1, genLevNum1. . dimNameX, genLevNumX [,mbrName])


,All Products, 2

te

,All Markets, 2

op
y

rig
ht

20
12

TG

|D

N
ot

is
tri
bu

Share=Sales/@MDANCESTVAL (

, Sales

);

Comparing Relationship Functions


Marketing Technologies Group | www.mtgny.com

dimName ,

mbrName)

@AncestVal (

dimName, genLevNum1,

mbrName)

dimNameX,

mbrName)

rig
ht

20
12

@MDParentVal( dimCount, dimName1.. .

TG

|D

N
ot

is
tri
bu

te

@ParentVal(

op
y

@MDAncestVal( dimCount, dimName1, genLevNum1. . dimNameX, genLevNumX ,mbrName)

Hierarchical References Summary Chart


ABSOLUTE

RELATIVE

(All Destinations refer to different values, same relationship)

is
tri
bu

te

(All Destinations refer to the same value)

@PARENTVAL(dimName, Xmbr)

Cross One-Dimension

@ANCESTVAL(dimName,genLevNum,[mbrName])

e.g. @ANCESTVAL(Markets, 2, Sales)

op
y

@MDPARENTVAL(numDim,dimName1,dimNameX,[
Xmbr])

e.g. @MDPARENTVAL(2, Markets, Products,


Sales)

Cross Multiple Dimensions

rig
ht

20
12

TG

|D

Sales->Markets

N
ot

e.g @PARENTVAL(Markets, Sales)

Sales->Markets->Products

@MDANCESTVAL(numDim,DimName1,GenLevNum1,
DimNameX,GenLevNumX [,Xmbr])

e.g. @MDANCESTVAL(2, Markets, 2, Products,


2, Sales)

Allocation Example
is
tri
bu

te

Marketing Technologies Group | www.mtgny.com

|D

N
ot

FIX(Headcount)
Calc Dim(All Markets,
All Products);
ENDFIX

M
20
12

rig
ht
op
y
C

Rent= Headcount%
* Rent ->All Markets
>All Products;

TG

Headcount%=Headcount
/ Headcount->All
Markets >All Products;

is
tri
bu

te

Copyright MTG 2012


N
ot

ABOUT MTG: Founded in 1992 MTG provides consulting, training and

TG

|D

collaborative development services specializing in the Oracle Enterprise


Performance Management system. We have extensive experience working with
Oracle Essbase, Hyperion Planning and related technologies.

rig
ht

20
12

MTG offers a number of available training opportunities and learning materials.


Visit us online to access the following resources:

op
y

MTG | Marketing Technologies Group


55 Broad Street, 10th Floor
New York City, NY 10004
Phone: 212-824-2900
Fax: 212-824-4929
info@mtgny.com

S-ar putea să vă placă și