Professional Documents
Culture Documents
CalculatingEssbaseDatabases
CalculatingEssbaseDatabases
InThisSection:
AboutDatabaseCalculation
AboutMultidimensionalCalculationConcepts
SettingtheDefaultCalculation
CalculatingDatabases
CancelingCalculations
ParallelandSerialCalculation
SecurityConsiderations
Theinformationinthischapterappliesonlytoblockstoragedatabasesandisnotrelevantto
aggregatestoragedatabases.
Alsosee:
ComparisonofAggregateandBlockStorage.
CalculatingAggregateStorageDatabases
AboutDatabaseCalculation
Adatabasecontainstwotypesofvalues:
Valuesthatyouenter,calledinputdata
Valuesthatarecalculatedfrominputdata
Forexample:
Youenterregionalsalesfiguresforavarietyofproducts.Youcalculatethetotalsalesforeach.
Youenterthebudgetandactualvaluesforthecostofgoodssoldforseveralproductsinseveral
regions.Youcalculatethevariancebetweenbudgetandactualvaluesforeachproductineach
region.
Thedatabasecontainsregionalsalesfiguresandpricesforallproducts.Youcalculatewhat
happenstototalprofitifyouincreasethepriceofoneproductinoneregionby5%.
Smalldifferencesintheprecisionofcellvaluesmayoccurbetweencalculationsrunondifferent
platforms,duetooperatingsystemmathlibrarydifferences.
Note: Mostcomputersrepresentnumbersinbinary,andthereforecanonlyapproximatelyrepresent
realnumbers.Becausebinarycomputerscannotholdaninfinitenumberofbitsaftera
decimalpoint,numericfractionssuchasonethird(0.3333...)cannotbeexpressedasa
decimalwithaterminatingpoint.Fractionswithadenominatorofthepoweroftwo(for
example,0.50)orten(0.10)aretheonlyrealnumbersthatcanberepresentedexactly.See
IEEEStandard754forFloatingPointRepresentation(IEEE,1985).
http://docs.oracle.com/cd/E40248_01/epm.1112/essbase_db/frameset.htm?dcaintro.html
1/7
1/22/2017
CalculatingEssbaseDatabases
Essbaseofferstwomethodsforcalculatingadatabase:
Outlinecalculation
Calculationscriptcalculation
Themethodthatyouchoosedependsonthetypeofcalculationthatyouwanttoperform.
OutlineCalculation
Outlinecalculationisthesimplestcalculationmethod.Essbasebasesthecalculationofthedatabase
ontherelationshipsbetweenmembersinthedatabaseoutlineandonanyformulasthatareassociated
withmembersintheoutline.
Forexample,Figure106,RelationshipBetweenMembersoftheMarketDimensionshowsthe
relationshipsbetweenthemembersoftheMarketdimensionintheSample.Basicdatabase.Thevalues
forNewYork,Massachusetts,Florida,Connecticut,andNewHampshireareaddedtocalculatethe
valueforEast.ThevaluesforEast,West,South,andCentralareaddedtocalculatethetotalvaluefor
Market.
Figure106.RelationshipBetweenMembersoftheMarketDimension
Figure107,CalculationofVarianceandVariance%showstheScenariodimensionfromthe
Sample.Basicdatabase.TheVarianceandVariance%membersarecalculatedbyusingtheformulas
attachedtothem.
Figure107.CalculationofVarianceandVariance%
Itmaybemoreefficienttocalculatesomemembercombinationswhenyouretrievethedatainsteadof
calculatingthemembercombinationsduringtheregulardatabasecalculation.Youcanusedynamic
calculationstocalculatedataatretrievaltime.SeeDynamicallyCalculatingDataValues.
CalculationScriptCalculation
Calculationscriptcalculationisthesecondmethodofcalculation.Usingacalculationscript,youcan
chooseexactlyhowtocalculateadatabase.Forexample,youcancalculatepartofadatabaseorcopy
datavaluesbetweenmembers.
Acalculationscriptcontainsaseriesofcalculationcommands,equations,andformulas.Forexample,
thefollowingcalculationscriptincreasestheactualmarketingexpensesintheNewYorkregionby5%.
FIX(Actual,NewYork)
Marketing=Marketing*1.05
ENDFIX
http://docs.oracle.com/cd/E40248_01/epm.1112/essbase_db/frameset.htm?dcaintro.html
2/7
1/22/2017
CalculatingEssbaseDatabases
SeeDevelopingCalculationScriptsforBlockStorageDatabases.
AboutMultidimensionalCalculationConcepts
Figure108,CalculatingaMultidimensionalDatabase,whichisbasedonasimplifieddatabase,
illustratesthenatureofmultidimensionalcalculations:
Figure108.CalculatingaMultidimensionalDatabase
ThedatabasehasthreedimensionsAccounts,Time,andScenario.
TheAccountsdimensionhasfourmembers:
SalesandCOGSareinputvalues
Margin=SalesCOGS
Margin%=Margin%Sales(MarginasapercentageofSales)
TheTimedimensionhasfourquarters.TheexampledisplaysonlythemembersinQtr1Jan,Feb,and
Mar.
TheScenariodimensionhastwochildmembersBudgetforbudgetvaluesandActualforactual
values.
TheoutlineinFigure108,CalculatingaMultidimensionalDatabaseisillustratedasathreedimensional
cubeinFigure109,IllustrationofaThreeDimensionalDatabase:
Figure109.IllustrationofaThreeDimensionalDatabase
http://docs.oracle.com/cd/E40248_01/epm.1112/essbase_db/frameset.htm?dcaintro.html
3/7
1/22/2017
CalculatingEssbaseDatabases
Anintersectionofmembers(onememberoneachdimension)representsadatavalueadatavalueis
storedinonecellinthedatabase.Torefertoaspecificdatavalueinamultidimensionaldatabase,
youmustspecifyeachmemberoneachdimension.InEssbase,membercombinationsaredenotedby
acrossdimensionaloperator(>).Createthecrossdimensionaloperatorusingahyphen()anda
greaterthansymbol(>).Donotincludeaspacebetweenthecrossdimensionaloperatorand
members.
ThesinglecellcontainingthedatavalueforSales,Jan,Actual,asshowninFigure110,Sales,Jan,
ActualSliceoftheDatabase,iswrittenasSales>Jan>Actual.
Figure110.Sales,Jan,ActualSliceoftheDatabase
WhenyourefertoSales,youarereferringtoasliceofthedatabasecontainingeightvalues,asshown
inFigure111,Sales,Actual,BudgetSliceoftheDatabase,whichare:
Sales>Jan>Actual
Sales>Feb>Actual
Sales>Mar>Actual
Sales>Qtr1>Actual
Sales>Jan>Budget
Sales>Feb>Budget
Sales>Mar>Budget
Sales>Qtr1>Budget
Figure111.Sales,Actual,BudgetSliceoftheDatabase
WhenyourefertoActualSales,youarereferringtofourvalues,asshowninFigure112,Actual,Sales
SliceoftheDatabase,whichare:
http://docs.oracle.com/cd/E40248_01/epm.1112/essbase_db/frameset.htm?dcaintro.html
4/7
1/22/2017
CalculatingEssbaseDatabases
Sales>Jan>Actual
Sales>Feb>Actual
Sales>Mar>Actual
Sales>Qtr1>Actual
Figure112.Actual,SalesSliceoftheDatabase
WhenEssbasecalculatestheformulaMargin%=Margin%Sales,ittakeseachMarginvalueand
calculatesitasapercentageofitscorrespondingSalesvalue.
EssbasecyclesthroughthedatabaseandcalculatesMargin%asfollows:
1.Margin>Jan>ActualasapercentageofSales>Jan>Actual.
TheresultisplacedinMargin%>Jan>Actual.
2.Margin>Feb>ActualasapercentageofSales>Feb>Actual.
TheresultisplacedinMargin%>Feb>Actual.
3.Margin>Mar>ActualasapercentageofSales>Mar>Actual.
TheresultisplacedinMargin%>Mar>Actual.
4.Margin>Qtr1>ActualasapercentageofSales>Qtr1>Actual.
TheresultisplacedinMargin%>Qtr1>Actual.
5.Margin>Jan>BudgetasapercentageofSales>Jan>Budget.
TheresultisplacedinMargin%>Jan>Budget.
6.EssbasecontinuescyclingthroughthedatabaseuntilithascalculatedMargin%forevery
combinationofmembersinthedatabase.
SeeDefiningCalculationOrder.
SettingtheDefaultCalculation
Bydefault,thecalculationforadatabaseisaCALCALLofthedatabaseoutline.CALCALL
consolidatesalldimensionsandmembersandcalculatesallformulasintheoutline.
Youcan,however,specifyanycalculationscriptasthedefaultdatabasecalculation.Thus,youcan
assignafrequentlyusedscripttothedatabaseratherthanloadingthescripteachtimeyouwantto
http://docs.oracle.com/cd/E40248_01/epm.1112/essbase_db/frameset.htm?dcaintro.html
5/7
1/22/2017
CalculatingEssbaseDatabases
performitscalculation.Ifyouwantacalculationscripttoworkwithcalculationsettingsdefinedatthe
databaselevel,youmustsetthecalculationscriptasthedefaultcalculation.
Tosetthedefaultcalculation,useatool:
Tool
Topic
Location
Administration
Services
SettingtheDefault
Calculation
OracleEssbaseAdministrationServicesOnline
Help
MaxL
alterdatabase
OracleEssbaseTechnicalReference
ESSCMD
SETDEFAULTCALCFILE
OracleEssbaseTechnicalReference
CalculatingDatabases
IfyouhaveCalculationpermissions,youcancalculateadatabase.
WhenyouuseAdministrationServicestocalculateadatabase,youcanexecutethecalculationinthe
backgroundsothatyoucancontinueworkingasthecalculationprocesses.Youcanthencheckthe
statusofthebackgroundprocesstoseewhenthecalculationiscomplete.
Tocalculateadatabase,useatool:
Tool
Topic
Location
Administration
Services
CalculatingBlockStorage
Databases
OracleEssbaseAdministrationServicesOnline
Help
MaxL
executecalculation
OracleEssbaseTechnicalReference
ESSCMD
CALC,CALCDEFAULT,and
CALCLINE
OracleEssbaseTechnicalReference
SmartView
CalculatingaDatabase
OracleSmartViewforOfficeUser'sGuide
CancelingCalculations
TostopacalculationbeforeEssbasecompletesit,clicktheCancelbuttonwhilethecalculationis
running.
Whenyoucancelacalculation,Essbaseperformsoneofthefollowingoperations:
Revertsallvaluestotheirpreviousstate
http://docs.oracle.com/cd/E40248_01/epm.1112/essbase_db/frameset.htm?dcaintro.html
6/7
1/22/2017
CalculatingEssbaseDatabases
Retainsanyvaluescalculatedbeforethecancellation
HowEssbasehandlesthecancellationdependsontheEssbaseKernelIsolationLevelsettings.See
UnderstandingIsolationLevels.
ParallelandSerialCalculation
Essbasesupportsparallelandserialcalculations:
Serialcalculation(default):Allstepsinacalculationrunonasinglethread.Eachtaskis
completedbeforethenextisstarted.
Parallelcalculation:TheEssbasecalculatorcananalyzeacalculation,and,ifappropriate,assign
taskstomultipleCPUs(uptofour).
SeeUsingParallelCalculation.
SecurityConsiderations
Tocalculateadatabase,youmusthaveCalculatepermissionsforthedatabaseoutline.Withcalculate
permissions,youcancalculateanyvalueinthedatabase,andyoucancalculateavalueevenifa
securityfilterdeniesyoureadandupdatepermissions.Carefullyconsiderprovidinguserswith
calculatepermissions.
SeeUserManagementandSecurityinEPMSystemSecurityMode.
http://docs.oracle.com/cd/E40248_01/epm.1112/essbase_db/frameset.htm?dcaintro.html
7/7