Beruflich Dokumente
Kultur Dokumente
EssbaseAdvanced
BuildingQuickCubesforDemosandPOCs
OracleEssbaseEdition11.1.2
March14,2010
BroughttoyoubytheEPMGlobalProductSalesSupportTeam
http://my.oracle.com/epm
Writtenby:MikeNader&DaveCollins
DocumentbasedontheBIG2G:EPMBETAMARCH2010TrainingDemoImage
Summary
ExecutiveSummary
ThiscourseisintendedtoprovideanoverviewofthetoolsandskillsnecessarytobuildquickEssbase
cubesforPOCsandcustomdemonstrations.Theclassfocusesontechniquesandtoolsnecessaryto
buildcubes,theseinclude:
EssbaseApplicationManager
EssbaseStudio
Excel
AdministrationServices
Further,thecoursefocusesontwoprimarytoolsforpresentationofinformation:
SmartView
VisualExplorer
AkeycomponentofthiscourseisthecreationofEssbasecubesduringthesession.Tothatendthere
arethreeexercisegroups:
EssbaseStudiobasicskills
CaseStudy1CreatingandEssbaseCubefromaflatfile
CaseStudy2CreatinganEssbaseCubefromanExcelReport
Participantswillalternatecasestudiesandexercisesduringtheday.Allparticipantsshouldgetan
opportunitytocompleteallthreeexercisegroupsandpresentatleastonesolutionbacktothegroup.
KeyNewFeatures
The11.1.2releaseofOracleEssbaseisfocusedmoreonenterprisereadiness.Assuch,therearefewer
marqueefeaturesinthisrelease.However,thereareanumberofkeycapabilitiesthatenableEssbaseto
betterscaleacrossanenterprise.Thefollowinginformationisasummaryofthe11.1.2release.
EnhancementsrelatedtoReliability,PerformanceandSecurity
OracleEssbasehasbeensignificantlyenhancedtosupportanumberofOracleFusionmiddleware
infrastructurecomponentsincludingOracleProcessManager&NotificationServer(OPMN),Oracle
EnterpriseManager(OEM),OracleDiagnosticLogging(ODL)andOracleIdentityManagement(OIM).
Thesupportfortheseinfrastructurecomponentsdeliversontheenterprisereadinessthemeby
deliveringunmatchedreliability,performance,scalabilityandsecurity.Customersbenefitfromlower
totalcostofownership(TCO)andhigherreturnoninvestment(ROI).
IntegrationwithOPMNallowsforfailingoverofEssbaseagentandserversfromonephysicalnodeto
anotherduetohardware/softwarefailure.Supportedfeaturesinclude:activepassivefailover,
2 OracleEssbase11.1.2
Summary
automaticdetectionofEssbaseagent/serverstateandmanagingstartup/shutdown,sharedstorageand
readwritesupporttoshareddisk.IntegrationwithOEMsimplifiesadministrationbyprovidingrealtime
monitoring,reportingandadministrationofEssbasedeployments.
IntegrationwithODLsimplifiesadministrationbyprovidingcentralizedlogging,erroridentificationand
resolutioncapabilities.IntegrationwithOIMsimplifiesadministrationanddeploymentsbyenabling
singlesignon,authenticationandauthorizationcapabilities.
EnhancementsrelatedtoUsability
OracleEssbasehasbeensignificantlyenhancedandnumerousnewfeatureshavebeenaddedto
significantlyimproveusabilityanddelivermarketleadinginnovation.Newfeaturesincludeallocations&
customcalculationsonASO,EssbaseADFcontrols,webservicessupport,ASOMDXformulaeditor,
HyperionSharedServicessecuritysynchronizationremovalandSQLNetsupportetc.
Allocationrefertotheprocessoftakingavalueandsplittingitacrossasetoftargetsbasedona
criterione.g.splittingtheCEOssalaryacrossbusinessfunctionslikefinance,marketing,salesetc.
Customcalculationsrefertotheabilitytoperformcalculationslikeaddition,subtraction,divisionand
multiplication.Thesupportforallocationsandcustomcalculationswillbeavailableprogrammaticallyvia
APIslikeCAPI,JavaApi,MaxLandalsothroughCalculationManager,aneasytousegraphicalinterface
fordefiningcalculations.
ASOMDXformulaeditorprovidesagraphical,easytouseinterfacefordefiningandmanagingMDX
formulas.Theeditorstemplatedrivenapproachdeliversproductivityenhancementsbyautomatingthe
repeatabletasksduringformuladefinition.
HSSsynchronizationremovalsimplifiesandstreamlinestheuserauthenticationprocessbynothavingto
storeandmanageusercredentialsinmultipleplaces.ThestreamlinedprocessusesHSSsolelyforuser
authenticationreducingmultiplepointsoffailure.
SQLNetsupportdeliversimprovedEssbasedataloadperformanceagainstOracledatabases.In
addition,OracledatabasefeatureslikeRAC,Clusteringetc.canalsobesupported.
EnhancementsrelatedtoEssbaseStudio
TheEssbaseStudioofferinghasbeensignificantlyenhancedandnumerousnewfeatureshavebeen
addedtosimplifytheadministrationandapplicationdevelopmenttasks.Majorenhancementsinclude
abilitytomove/copy/backupstudiocatalogviaimport/export,improvementsarounddatasource
handlingviaabilitytoadd/removesourcedatatable/columns,supportforODBCDSNsources,support
fornamedlevel/generations,betterhandlingoftextmeasuresviacustomtextlistmappings,tighter
OBIEEintegrationwithStudiobeingabletoreadthehierarchydefinitionsviadirectaccesstoOBIEE
businessmodelingandmappinglayerandaccessibilitysupportviasection508support.
OracleEssbase11.1.2 3
Summary
EnhancementsrelatedtoCrossPortfoliosupport
OracleEssbasehasbeensignificantlyenhancedtosupportanumberofFusionERPapplications
includingFinancials,CRMandProjects.OracleEssbaseisakeyinfrastructurecomponentoftheFusion
MiddlewarestackandisusedtodeliversreportingandanalyticscapabilitiesforanumberofOracles
ERP,CRMandEPMapplications.EnhancementsincludenewfeatureslikeissuingMDXqueriesvia
PL/SQL,EPMArelatedenhancements,HyperionPlanningrelatedenhancementsetc.
4 OracleEssbase11.1.2
TableofContents
ExecutiveSummary..............................................................................................................................................2
KeyNewFeatures...............................................................................................................................................................2
EnhancementsrelatedtoReliability,PerformanceandSecurity........................................................2
EnhancementsrelatedtoUsability..................................................................................................................3
EnhancementsrelatedtoEssbaseStudio......................................................................................................3
EnhancementsrelatedtoCrossPortfoliosupport.....................................................................................4
Lesson1:BuildingQuickEssbaseCubes......................................................................................................6
BuildingQuickEssbaseCubes.......................................................................................................................................7
Lesson2:CreatinganEssbaseCubewithStudio....................................................................................16
Overview&Objective......................................................................................................................................................17
Exercise1 DataSourceandMiniSchemaCreation......................................................................................17
Exercise2 CreatingFolderStructures...............................................................................................................25
Exercise3 ManagingHierarchies........................................................................................................................29
Exercise4 CubeSchemaCreation.......................................................................................................................39
Exercise5 SettingEssbaseProperties...............................................................................................................48
Exercise6 EssbaseAliasTable.............................................................................................................................63
Exercise7 DrillThroughReports........................................................................................................................69
Lesson3:EssbaseIronChef...........................................................................................................................78
Overview&Objective......................................................................................................................................................79
Exercise8 AddingQuickValuewithOracleEssbase...................................................................................79
Exercise9 CreatingaCubefromaCustomerReport..................................................................................80
Lesson4:DateTime,Text,andVBA...........................................................................................................81
Overview&ObjectiveWorkingwithDateTimeDimensions.....................................................................82
Exercise10 ExpandingEssbasewithDateLogic.............................................................................................85
Exercise11 OptimizingMDXFormulae...............................................................................................................85
Exercise12 CreatingSmartViewTemplateswithVBA................................................................................86
OracleEssbase11.1.2 5
Lesson1
BuildingQuickEssbaseCubes
Lesson1:BuildingQuickEssbaseCubes
Aftercompletingthislessonthestudentshouldbeableto:
IdentifykeytoolsforquicklybuildingEssbasecubes
IdentifykeyreportingcomponentsforeffectivelyhighlightingEssbasecubes
Summarizethekeynewfeaturesinthe11.1.2release
6 OracleEssbase11.1.2
Lesson1:BuildingQuickEssbaseCubes
BuildingQuickEssbaseCubes
Thissectiondoesnotcontainanyexercises.Thesectionispresentedasa
PowerPointpresentationthatsummarizestipsandtricksforcreatingand
presentingEssbasecubes.Theslidesthatfollowarethesameusedbythe
instructor.Allnewfeaturesforthe11.1.2releasearesummarizedinthe
precedingsection.Thereareslidessummarizingthenewfeaturesincluded
below.
Scenario modeling
(what-if) Data SQL
OracleEssbase11.1.2 7
Lesson1:BuildingQuickEssbaseCubes
Expanded hierarchies
Alternate hierarchies
Hierarchies in all dimensions
Greater breath of analytic ability
Purpose built dimensional calculation engine
Hundreds of prebuilt functions, extensible calculator
Speed and simplification
Optimize for analytics
Eliminates or minimizes need for aggregate tables
Simplified build process minimizes ETL requirements
Rapid aggregation of intersections and derived in memory
calculations as desired
Incremental data loading while maintaining user access
8 OracleEssbase11.1.2
Lesson1:BuildingQuickEssbaseCubes
Multi-platform support
Scalability:
User concurrency
Data volumes
Calculation capability
Enterprise Management:
Session management
Fewer cubes
Analytic Breadth:
No measure group requirement
Write-back and scenario based analysis
Lower TCO
Extreme Performance
200 8 50
162
150 6 40
30
100 4
20
50 2 7
10
0.01
0 0 0
Competing Essbase Competing Essbase Competing Essbase
Vendor Vendor Vendor
OracleEssbase11.1.2 9
Lesson1:BuildingQuickEssbaseCubes
Standards Based
Query access
MDX
SQL
Multiple and cross platform deployment
Unix, Linux, and Windows
32 / 64 bit
Optimization
Partitioning
Clustering
Tuning
Trickle Feed
OLTP & ODS Data Warehouse OLAP SAP, Oracle, Siebel, Excel Business
Systems Data Mart PeopleSoft, Custom XML Process
10 OracleEssbase11.1.2
Lesson1:BuildingQuickEssbaseCubes
Essbase OBIEE
Advanced calculation engine Analytic Modeling and Analysis Scalability
Simple aggregations to complex cross- Intelligent Request Generation and Multi-user read write
dimensional allocations Optimized Data Access Services Incremental data loading
Relationship aware High user concurrency
Hierarchy-based navigation Multi-platform 32/64 bit
Application wide or subset specific
Centralized dimensional maintenance support
Conditional and procedural logic
Financial and time intelligence Open APIs
Scenario-based and what-if analysis
Oracle Business
OLTP & ODS Data Warehouse PeopleSoft, Siebel, SAP Process
Systems Custom Apps
OracleEssbase11.1.2 11
Lesson1:BuildingQuickEssbaseCubes
12 OracleEssbase11.1.2
Lesson1:BuildingQuickEssbaseCubes
Data HR
Warehouses
Payroll
Sales
MDM
Customer
Oracle Profitability
Planning
Scripts
Flat-files Finance
SAP Inventory
OBIEE
Marketing
Drill through
OracleEssbase11.1.2 13
Lesson1:BuildingQuickEssbaseCubes
14 OracleEssbase11.1.2
Lesson1:BuildingQuickEssbaseCubes
OracleEssbase11.1.2 15
Lesson2
CreatinganEssbaseCubewithStudio
Lesson2:CreatinganEssbaseCubewithStudio
Uponcompletionofthissessionthestudentshouldbeableto:
Createarelationalsourcedatabase
MapconnectionsintoEssbaseStudio
Completeallstepsrequiredtodeployacubefromarelationaldatasource
16 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
Overview&Objective
TheobjectiveofthisseriesofexercisesistoprovideabroadoverviewofEssbase
Studiocapabilitiesthatcanbeusedinthecreationofcustomdemonstrations
andPOCs.Theseexercisesfocusonarelationalmodel,butthemajorityofthem
canbeusedwithflatfilesaswell.Theoneexceptionisthecreationofthemini
schema.ThedriverusedbyEssbaseStudioonlyallowsselfjoinsforparent/child
buildsonafile.Youcannotcreatejoinsbetweenfiles.
Exercise1 DataSourceandMiniSchemaCreation
1) OpentheEssbaseStudioConsoleandlogin.
2) Createanewdatasource.RightclickonDataSourcesandselectNew>DataSource
OracleEssbase11.1.2 17
Lesson2:CreatinganEssbaseCubewithStudio
3) GivethenewsourceanameofTBC_newandauser/passwordofTBC.
18 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
4) Selectthefollowingtables,asshown:
OracleEssbase11.1.2 19
Lesson2:CreatinganEssbaseCubewithStudio
5) CreateanewminischemathenamewilldefaulttoTBC_newschema.
20 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
6) Populatetheschemawithallthetables:
OracleEssbase11.1.2 21
Lesson2:CreatinganEssbaseCubewithStudio
7) Wedonotwanttocreateanymetadataelementsatthistime:
8) WhenyouselectFinishthenewconnectioniscreated:
22 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
9) Theminischemaopens:
OracleEssbase11.1.2 23
Lesson2:CreatinganEssbaseCubewithStudio
10) DoubleclicktheTBC_newSchematabatthetopofthescematomaximisethe
display
11) Addthejoinsasshownbelow,includingtherecursive(parent/child)joininthe
Measurestable.
24 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
Note:IamdisplayingCrowsFeet,ratherthatarrow,thisisanoptioninStudio(Edit
>Preferences);also,afterjoiningthetablesIhaveaskedStudiotolaythemoutto
getthisdisplay.
12) ReturntheSchemadisplaytoitsstartingsize(doubleclickthetabagain)andthen
closeitbyclickingontheXinthetab.Savethechanges,whenprompted.
Thenewdatasourceisnowreadytobeusedtocreatethedimensionelementswe
need.
EndofExercise
Exercise2 CreatingFolderStructures
Itisnotalwaysnecessarytomanuallypositiontheelements,butthisgivesus
controloverwheretheyarestored,sowecancreatealogicalstructureandfind
everythingeasily.
OracleEssbase11.1.2 25
Lesson2:CreatinganEssbaseCubewithStudio
1) CreateanewfolderunderDimensionElements,calledTBC_new.Rightclick
onDimensionElementsandselectNew>Folder.
2) NamethefolderTBC_new.
26 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
3) ExpandthetablesintheTBC_newdatasourceanddragthefollowingelementsinto
thenewfolderyoujustcreated.
TableName ColumnName
Sales Amount
Transdate
Measures Parent
Child
Product SKU
Ounces
Market State
Family Family
Region Region
Scenario Scenario
4) Wewanttoaddcolumnsbasedonthedate(suchasmonth),tocreatetherequired
dateelements,rightclickonTransdateintheTBC_newfolderandselectCreate
DateElements
OracleEssbase11.1.2 27
Lesson2:CreatinganEssbaseCubewithStudio
5) Selecttheelementsrequired,asbelow:
28 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
6) Notethattheelementsarecreatedforusautomatically.Wecouldhavedonethis
manuallybyselectingNew>DataElement.DoubleclickonYeartoseewhathas
beencreated.
7) WehavenowcreatedalltheDimensionElementsweneedandcanproceedonto
EssbaseStudioWorkshopStage3.docxtocreatethehierarchies.
EndofExercise
Exercise3 ManagingHierarchies
1) CreateanewfolderunderthefolderHierarchiesalsocalledTBC_new.
OracleEssbase11.1.2 29
Lesson2:CreatinganEssbaseCubewithStudio
2) Createanewhierarchyunderthisfolder
3) TypeTimeintotheNamefielditrenamesthetab.
30 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
4) DragtheYearfieldfromtheTBC_newDimensionElementsfolderintotheHierarchy
column:
5) DragtheQuarterfieldovertheYearfieldinthehierarchywindow,soitwillbe
addedasachild:
OracleEssbase11.1.2 31
Lesson2:CreatinganEssbaseCubewithStudio
6) RepeatforMonth.
Donotcreatethishierarchydowntothedateleveltheformatusedtobuild
thedimensionandthedataaredifferent,sonothingwillload.Assoonaswe
havesortedoutthereasonand/oraworkaround,thisdocumentwillbe
updated.
7) Save&thenselectPreview.
8) Thesequenceisabitrandom!Weneedtofixthis.PressOKandthenClose.
9) OpentheMonthDimensionElementbydoubleclickingit,orrightclickandselect
Edit.
32 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
10) SelecttheTRANSDATEfieldfromtheTBC_newconnectionSALEStableandaddto
theSortSequenceandthenselectOK.
11) RightClicktheTimehierarchyandselectPreview.
OracleEssbase11.1.2 33
Lesson2:CreatinganEssbaseCubewithStudio
Youwillnoticethatitnolongerdisplaysalltheelements,sowecannotfullycheck
thesortingthisappearstobeafeature,butdoesmakesense:wedonotwantto
sort/selectthewholefacttable.
12) Repeatsteps3.1to3.6tocreatehierarchiesforthefollowingmembersandaddthe
indicatedsorting(as3.9):
Measures Parent
Child Measures.Sortkey
Product Family
34 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
SKU Product.SKU
State Market.State
Scenario Scenario
13) OpentheProducthierarchyandaddtheelementOuncesasasiblingofFamilyand
thenaddSKUagainasachildofOunces.
14) OpentheScenariohierarchyandselectAdd>Adduserdefinedsiblingfromthe
buttoninthebottomrightofthescreen.NametheitemForecast.
OracleEssbase11.1.2 35
Lesson2:CreatinganEssbaseCubewithStudio
15) RepeatfortheitemsVarianceandVariance%.
36 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
16) SaveandPreview
Note:thatthedisplayappearstoshowmultiplehierarchiesthisisnothowit
willbebuiltinEssbase.
17) ClosetheSampleandthehierarchy.
OracleEssbase11.1.2 37
Lesson2:CreatinganEssbaseCubewithStudio
18) Inasimilarway,wenowcreateaViewHierarchywiththeelementsDaily,QTD,YTD.
19) Youmayhavenoticedthatasweaddedtheseuserdefinedelements,theywere
automaticallyaddedintothefolderwecreatedthehierarchyin.
WecouldhavecreatedtheseelementsmanuallyinStage2andthenwewould
havebeenabletopositionthemwherewewanted.Similarly,whencreating
hierarchies,youcandragelementsdirectlyfromthedatasourcesintheright
handviewpaneandtheywouldagainhavebeenaddedautomaticallytothe
folderwherethehierarchyis.
EndofExercise
38 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
Exercise4 CubeSchemaCreation
1) RightclickontheCubeSchemasfolderandselectNew>CubeSchema.
2) NametheSchemaTBC_new.
3) SelecttheAMOUNTcolumnfromDimensionElements\TBC_newfolderandaddto
theMeasuresGroup:
OracleEssbase11.1.2 39
Lesson2:CreatinganEssbaseCubewithStudio
4) AddthehierarchiesshownbelowtotheHierarchiessection:
Note:thattheorderinwhichtheyareaddedwilldeterminetheorderinwhichthey
appearwithinyourEssbasecubeandthereisnowaytoresequencethemhere.
5) SelectNextandchecktheboxtocreateanEssbaseModel.SelectMeasuresasthe
AccountsDimension.
40 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
Note:AnEssbasemodelisalocalrepresentationofthestructure.AnEssbase
outlinewillNOTbecreatedatthisstage.
OracleEssbase11.1.2 41
Lesson2:CreatinganEssbaseCubewithStudio
6) PressFinish.
42 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
7) CreateanEssbasecube.Rightclickablankareaofthemodelworkspace(orthe
modelnameintheNavigatorpane)andselectCubeDeploymentWizard.
OracleEssbase11.1.2 43
Lesson2:CreatinganEssbaseCubewithStudio
8) SelecttheEssbaseServer,ApplicationandDatabasenameandpressFinish.
Notethestandardoptionsforoutlinebuild,dataloadorboth,asinEIS.Thereis
alsoanewoptiontoCreateandsaverulefileonly.Thiswillpopulatetheloadrules
ontheEssbaseserver,wheretheycanbescriptedviaMaxL.
Theprogresswindowdisplays.
44 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
9) Hopefully,youwillseeasuccessmessage!PressOK.(Sometimesitdoesnot
display.)
10) SelectCancelTheFinishbuttonwillcauseittoregeneratethecube!
OracleEssbase11.1.2 45
Lesson2:CreatinganEssbaseCubewithStudio
11) WecanlaunchEssbaseAdministrationServicesdirectlyfromStudio.
12) SingleSignonasusual!(ensuretheUsernameiscorrect,thedefaultisadmin.)
13) EASopens,notethatthisisadifferentskintoEASthanwhenlaunchednormally(I
preferit,butthereareacoupleofplaceswhereitdisplayswhitetextonawhite
background!).
46 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
14) NavigatetotheApplication/databaseyoucreatedandopentheoutline.
15) Confirmthedimensionshavebuiltcorrectlyandthesequenceiscorrect.
16) Closetheoutline.
OracleEssbase11.1.2 47
Lesson2:CreatinganEssbaseCubewithStudio
17) WehavesuccessfullycreatedanEssbaseoutline,buthavenotspecifiedanyofthe
propertiesweneed:Time;Alias;DynamicCalc,etc.Also,wehavecreatedaBSO
cubeandwewanttocreateanASOone,sodeletethisapplicationbefore
proceeding.
EndofExercise
Exercise5 SettingEssbaseProperties
1) WecangettotheEssbasePropertiesinavarietyofways.Rightclickonthefield
Measures>ChildandselectEssbaseProperties.Alternatively,wecouldhave
doubleclickedthefield,orrightclickedontheEssbaseModelintheNavigator
window.
48 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
2) TheEssbaseModelPropertiesopenswithfocusontheelementwehadselected.
OracleEssbase11.1.2 49
Lesson2:CreatinganEssbaseCubewithStudio
3) HerewecanspecifyallthestandardEssbasepropertiesthatweneed,dividedinto
appropriatetabs.
4) AddthefollowingselectionstotheCHILDelementasExternalSource.Notethatwe
arenotaddinginformationthatrelatestoBSOmodels(TwoPass,DataStorage,etc.)
aswearecreatinganASOmodel.
TIMEBALANCE
UDA
5) Fromherewecancontrolallmembers,aswellastheoverallmodelpropertiesby
selectingadifferentelementinthelefthandwindow.Setthefollowingproperties
forthespecifiedelements.
50 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
IsUda([Measures].Cu
rrentMember,"E"),
[Budget]
[Actual],
[Actual]
[Budget]
OracleEssbase11.1.2 51
Lesson2:CreatinganEssbaseCubewithStudio
IsUda([Measures].Cu
rrentMember,"E"),
([Budget]
[Actual])/[Budget]*100,
([Actual]
[Budget])/[Budget]*100
CrossJoin(
PeriodsToDate(
[Year].Generations(3))
,{[Daily]}
CrossJoin(
PeriodsToDate(
[Year].Generations(2))
,{[Daily]}
52 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
Attributetype Numeric
6) 5.6ClickApply,thenCloseandyouwillgetthismessage
7) SelectYestogetthismessage.WearebuildinganASOcubeandthesystemis
tellingusnottomakeTimeSparse.Donotdothisinfrontofcustomersalways
maketheTimedimensionDensebeforerunningthis!
8) Closethisbox.NotethatyouhavebeenreturnedtotheModelPropertiesscreen
(incaseyouwanttodoanythingaboutthewarnings),soselectCloseagain.This
timeitwillclose!
OracleEssbase11.1.2 53
Lesson2:CreatinganEssbaseCubewithStudio
9) RightclickthemodelnameandselecttheCubeDeploymentwizard.
10) EnterthedatabasenameofTBC_newifitcomesupwithanameintheDatabase
field,italreadyexistsinwhichcaseyoushoulddeletethisapplicationfromEAS
beforecontinuing(youcanupdateadatabasehere,butifTBC_newalreadyexistsit
isprobablytheBSOmodelwecreatedearlierandcannotbeconvertedtoASO).
54 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
11) SelecttoBuildoutlineandloaddataandOverwriteexistingdata.
12) 5.12PressFinish
OracleEssbase11.1.2 55
Lesson2:CreatinganEssbaseCubewithStudio
13) Theloadwill(probably!)fail.SelectOKandthenCancel.
14) LaunchEASfromtheToolsmenu.
15) NavigatetotheTBC_newapplicationandviewtherulesfiles.
Onerulehasbeencreatedforeachdimension(includingattributedimensions).
Thesecannotbemodifiedoropenedinthisinterface(thisisbecausetherule
maybesetforVaryingAttributes,whicharenotsupportedintheLoadRule
GUI).
Thereisalsoaruleforthedataload,thatwillbenamedafterthedatabase,
whichcanbeopened.
56 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
16) Openthedataloadrule(Main)andopen/runtheSQLsavedwithit(note:Data
source,userandpasswordareallTBC).
17) Therulelookscorrectalldimensionsarelistedandnamedcorrectly.Validatethe
rule.
OracleEssbase11.1.2 57
Lesson2:CreatinganEssbaseCubewithStudio
18) Savetheruleandthenexecuteit(rightclickonthedatabasenameandselectLoad
Data).
58 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
19) ChangethedatasourcetoSQL,selecttherulesfileandentertheUser
name/passwordandselectOK.
OracleEssbase11.1.2 59
Lesson2:CreatinganEssbaseCubewithStudio
20) Therulehascompletedwithwarnings,buthasloadeddata.Confirmthisbylooking
atthedatabasepropertieswehaveloaded21thousandcells.
21) RightclickontheModelnameandselectShowDeploymentHistory.
22) Thiswillshowacompletehistoryofalldeployments.
60 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
23) Followthedeploymentsuggestionaboveandtwosuccessfulentrieswillbeadded
totheend.
Ifyougetthewarningthatadministrativetasksarebeingcarriedoutsothe
deploymentcannotbecompleted,stoptheapplicationinEAS.Thiswillensure
alllocksarecleared.
24) Rightclickonanyoftheelements,hierarchiesorthemodelandselectShow
lineage.
OracleEssbase11.1.2 61
Lesson2:CreatinganEssbaseCubewithStudio
25) Fromherewecandoubleclickonanyelementtomakeitthefocus.
26) OpenExcelandconnecttothecubetoshowSmartViewcapabilities(ifrequired).
EndofExercise
62 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
Exercise6 EssbaseAliasTable
1) FromtheToolsmenu,selectAliasSetManager.
2) Selecttoaddanewset.
OracleEssbase11.1.2 63
Lesson2:CreatinganEssbaseCubewithStudio
3) NamethenewAliassetTBC_new.
4) Selecttoaddanewbinding.
64 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
5) Wecannowlinktheelementsweareusing(theSource)toaspecificdatabase
column(theBindingexpression).LinkSKUtoProduct.SKU_ALIAS.
6) SelectOKtosavethisbindingandtobeabletoaddmore.
7) SelectOKagaintosavethisAliasSet.
OracleEssbase11.1.2 65
Lesson2:CreatinganEssbaseCubewithStudio
8) ThisAliasSetcannowbelinkedtomanyEssbasemodels,ratherthanhavingtoset
upthelinkageindividually.OpentheEssbasepropertiesscreen(see5.1ifstuck).
AgainsttheAliastabforthemodel,youcanaddeachaliastablerequired.
9) Closethisscreen(savingthechanges)andredeploythemodel.
66 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
10) Selecttobuildtheoutlineonly.
OracleEssbase11.1.2 67
Lesson2:CreatinganEssbaseCubewithStudio
11) OpentheoutlineinEASandexpandtheProductdimension.
12) Noaliasesaredisplayed.ThealiastablewehavecreatedisnamedaftertheAlias
Set.Undertheoutlineproperties,wecanseethatouraliastablehasbeencreated,
butisnotactive.
13) Ifrequired,makethetableactiveandshowinEASorSmartView.
EndofExercise
68 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
Exercise7 DrillThroughReports
1) RightclickontheDrillThroughreportsfolderandselecttocreateanewone.
2) RenamethereportDetailandselecttoaddintersectionlevels.
OracleEssbase11.1.2 69
Lesson2:CreatinganEssbaseCubewithStudio
3) ExpandthehierarchiesnodeandthenTBC_newtogettoourhierarchies.(Note
thatonlythosefoldersthatcontainahierarchystructurearedisplayed.)
4) SelectTime,Product,ScenarioandRegionandpressOK.
70 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
5) Wecannowselecttheintersectionlevelsthatareapplicableforthisreport.
6) SelecttheReportContentsTab.
OracleEssbase11.1.2 71
Lesson2:CreatinganEssbaseCubewithStudio
7) Addthecolumnsrequiredforthisreport.Selectallrequiredcolumns(usingcontrol
click)wecanreorderthemafterwards.
8) Usetheupanddownarrowsontherighttogettherequiredsequencetogeta
selectionsimilartothis(notethatIhaveaddedAMOUNTtwice).
9) SelecttoSumtheAmountcolumn.
72 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
10) Thenrenamethesecondamount(AMOUNT_1)andselecttoshowtheCount.
11) Addanysortingrequired.
12) PresstheTestbuttonandfillintheparametersandselectShowResult.
OracleEssbase11.1.2 73
Lesson2:CreatinganEssbaseCubewithStudio
13) GototheAssociationstab.Alldatabasesthatusethecombinationofdimensions
wehaveselectedaredisplayed.
14) Checktherequireddatabase(s)andsave.Notethatnofurtheractionisrequired.
Thisreportisimmediatelyavailableforthesedatabaseswithoutanyother
change/update.
15) OpenExcelandconnecttothedatabaseinSmartViewandstartanadhocquery.
Foreaseofvisibility,setyourstylestohighlightdrillthroughreports.
74 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
16) Drilltoalevelwherereportsareavailableandselectadatacellwhereitis
highlighted.Notethatthedrillthroughreportisshownasacomment.
OracleEssbase11.1.2 75
Lesson2:CreatinganEssbaseCubewithStudio
17) Toexecutethedrillthroughreport,rightclickthecellandselectHyperion>AdHoc
Analysis>DrillThroughReports.
18) Selecttheappropriatereport(ifmorethanone)andselectLaunch.
76 OracleEssbase11.1.2
Lesson2:CreatinganEssbaseCubewithStudio
19) Anewtabopenswiththereport.
EndofExercise
OracleEssbase11.1.2 77
Lesson3
EssbaseIronChef
Lesson3:EssbaseIronChef
Uponcompletionofthislessonthestudentshouldbeableto:
CreateanEssbasecubefromaflatfiledatadump
CreateanEssbasecubefromacustomerreport
78 OracleEssbase11.1.2
Lesson3:EssbaseIronChef
Overview&Objective
Quiteoften,acustomerwillgiveyouadatadumporareportandaskyoutoprovevaluewithEssbase.
Othertimes,youneedtoproactivelyseektheedatasources.Regardlessofhowyouobtainthedata
gettingeitheralimiteddatadumporareportisanidealwaytosourceanEssbasecube.Essbaseisall
aboutthedata,allaboutthereport.Thesesourcesprovide:
Dimensionality
Seeddata
Hierarchies
Reportingrequirements
Takingoneofthesedatasourcesandshowingthecustomervaluewiththeirowndataisthebestwayto
drivehomethevaluethatEssbasecanprovidetoanorganization.
Exercise8 AddingQuickValuewithOracleEssbase
TheStateofCalifornianeedsarecipebettermanagefunds.Giventhecurrent
economicclient,itisimperativethattheymanageaninevitablyshrinkingbudget
byoptimizingfundsspentonStateprogramsandcontracts.Theyneedtobeable
toanswerthefollowingquestions:
Wherearewespendingthemajorityofourcontractdollars?
Ofthosecontracts,howmanyarecompetitive?
DowehavecontractswithopenPOvalue?Ifso,whatdepartmentsare
thesein?
Ofthecontractdollarswhatpercentagearespentondemographic
groups(smallbusinesses,veteransgroups,etc)?
Ifwetakea10%budgetcutshouldthisbeappliedacrosstheboard,or
aretheircontractualareasthatwecouldeliminatealltogethertobetter
absorbthebudgetshortfall?
Whatpercentageofcontractsareamended?Assumingtheseaccountfor
anincreasedbudgetimpact,whatareasareamendedmostoften?
Whichvendorisgettingthemajorityofcontractdollars?Doesthishold
trueacrossallcontracttypes?Arethesecontractscontestedclosed?How
oftendoesthestateacceptabidthatisnotthelowestspend?
OracleEssbase11.1.2 79
Lesson3:EssbaseIronChef
Whatpercentageisagivencontractofthetotalspend?
Whilethisprojectisaimedathelpingthestate,thesourceinformationis
publicallyavailable.Wecouldeasilyusethisinformationtohelpvendors
understandhowthestatespendsmoneyandhowtobetterpositiontheir
productsandservices.
Youcanbuildthecubeusinganymethodyouchoose.Youwillbejudgedon
tastefuldesign,executionoftechniques,andoriginality.However,please
completesteps13withina90minuteperiod.Thesecretingredientsforthis
challenge:
1) UsetheSCPRS.txtfiletocreateanEssbasecubetoanswerthequestionslisted
above.
2) Createatleasttworeportstosupportansweringthequestionslistedabove.
3) ForthisexerciseyouonlyneedtocreatetheEssbasecube.However,amore
completesolutionmayincludeadditionalcomponents.Listanyadditional
components,analyticcapabilitieswemightbeabletousetoshowvalueinthis
demo.
EndofExercise
Exercise9 CreatingaCubefromaCustomerReport
Forthiscasestudyyoushouldcompletethefollowingsteps:
1) ReviewtheDailyOperationsSnapshot09202006.xlsspreadsheetfoundinthe
EssbaseAdvanced/VanguardPOCfolder.
2) Basedonyourreviewdothefollowing:
a. CreateanEssbasecubethatcouldbeusedtoreplicatethereports
b. LoaddatafromtheDailyOperationsSnapshot09202006.xlsspreadhseet
c. CreateatleasttworeportsfromtheEssbasecube
Youcanbuildthecubeusinganymethodyouchoose.Youcanalsochooseany
mediumforpresentationofthereports.Completesteps13withina90minute
period.
EndofExercise
80 OracleEssbase11.1.2
Lesson4
DateTime,Text,andVBA
Lesson4:DateTime,Text,andVBA
Uponcompletionofthislessonthestudentshouldbeableto:
CreateaDatetimedimensioninandASOoutline
CreatesimpleVBAtemplatesinSmartView
BuilddateandtextmeasurecapabilitiesintoEssbase
OracleEssbase11.1.2 81
Lesson4:DateTime,Text,andVBA
Overview&ObjectiveWorkingwithDateTimeDimensions
Date-time Dimensions
Automated Time Dimensions
Gregorian
Manufacturing
ISO
Fiscal
Retail
Expanded Functionality
Understanding time as a
continuum
Cross-tab reporting of time
MDX Functions to work
with time
Loading based on time stamp
TheabilitytoproperlydiscernthedatevaluefromonemembertoanotherinanEssbaseoutlineis
somethingthathasbeenachallengeoftheyears.Theconceptofatruedatetimetypedidnotexistin
Essbaseuntilthe9.3.xrelease.WiththisreleaseseriesASOmodelhavetheabilitytodiscernthefinite
datevaluebetweenmembersinthedatetimedimension.
Thedatetimedimensiontypeiscreated,usingeitherEssbaseStudioortheDateTimedimensionwizard
inEssbaseAdministrationServices.TheDateTimeWizardletsyouchoosefromaseriesoftemplate
basedcalendarsandrefinethescopeandspecificsofagivencalendar.
Thisexerciseasksyoutoaddtimeintelligencemetricstoanoutlinethathasadatetimedimension.Use
thefollowingfunctiondefinitionsasareferencetohelpyoucreatethepropermemberformulae:
DateToMember(<date>,<dimensionorhierarchy>[,<genlev>])
Givenadate(representedasanumberinAnalyticServicesMDX),thisfunctionwouldreturnthe
memberfromadatehierarchyoftheinputdimensionfromthespecifiedgeneration.Default
hierarchyisprimaryone,defaultGenerationislowestgeneration.
DateRoll(<date>,<date_part>,<number>)
SupporteddatepartsarethestandardTimeperiodssuchasDP_Year,DP_Month,DP_Quarter,
82 OracleEssbase11.1.2
Lesson4:DateTime,Text,andVBA
DP_Week,DP_Day.Thisfunctionrolls(addsorsubtracts)ndatepartstotheinputdateand
returnsadateintermsofthestandardGregoriancalendar.
DateDiff(<date1>,<date2>,<date_part>)
Thisfunctionreturnsthedifference(number)betweentwoinputdatesintermsofspecified
dateparti.e.DP_Year,DP_Quarter,DP_Month,DP_Week,DP_Day.
DatePart(<date>,<date_part_ex>)
ThisfunctionreturnstheYear/Quarter/Month/Week/Day/DayOfYear/Weekdayasanumber,
giventheinputdateandadatepart,followingthestandardGregoriancalendar
Today()
ThisfunctionreturnsthecurrentdateonthemachinerunningAnalyticServicesserver.
TodateEx("internaldateformat","datestring")
Returnsthedate(numeric)valuefrominputdatestringaccordingtothedateformatspecified.
Ifthedateorthedateformatstringsareinvalid,anerrorwillbereturnforeithercondition.The
functioniscasesensitive,sotypinginaMonthwithlowercasesuchasaprisnotallowed,
extrawhitespaceisalsonotallowed(errorwillbereturned)Thisfunctionisanextensionof
existingTodatefunction.
FormatDate(<date>,internaldateformat)
Thisfunctionreturnstheformatteddatestringforinputdate.Ifthedateorthedateformat
stringsareinvalid,anerrorwillbereturnforeithercondition.Thefunctioniscapsensitive,so
typinginaMonthwithlowercasesuchasaprisnotallowed,extrawhitespaceisalsonot
allowed(errorwillbereturned)
GetFirstDate(<member>),GetLastDate(<member>)
Thesefunctionsreturnthestart/enddate(numeric)forinputdatehierarchymember,
otherwisereturns#MISSING(suchaswhenmemberisnotfromthetimedimension).
Aggregate(<set>[,<accounts_member>])
AggregatesameasurebasedonitTimeBalanceProperties(TBFirst,TBLast,TBAvg).Behaveslike
OracleEssbase11.1.2 83
Lesson4:DateTime,Text,andVBA
SUMwhenthemeasuredoesnthaveanyTimeBalanceproperty.UsefulinwritingMDX
formulasforPeriodsToDatecalculationsacrossanytypeofmetric(E.gSales/HeadCount)
Notethatmanyoftheprecedingfunctionsreferenceadateformat.Theformatssupportedbythedate
timetypeareasfollows:
"monddyyyy",/*monshortddyyyy*/
"Monddyyyy",/*monfullddyyyy*/
"mm/dd/yy",/*mm/dd/yy*/
"yy.mm.dd",/*yy.mm.dd*/
"dd/mm/yy",/*dd/mm/yy*/
"dd.mm.yy",/*dd.mm.yy*/
"ddmmyy",/*ddmmyy*/
"ddMonyy",/*ddmonfullyy*/
"ddmonyy",/*ddmonshortyy*/
"Monddyy",/*monfullddyy*/
"monddyy",/*monshortddyy*/
"mmddyy",/*mmddyy*/
"yy/mm/dd",/*yy/mm/dd*/
"yymmdd",/*yymmdd*/
"ddMonyyyy",/*ddmonfullyyyy*/
"ddmonyyyy",/*ddmonshortyyyy*/
"yyyymmdd",/*yyyymmdd*/
"yyyy/mm/dd",/*yyyy/mm/dd*/
"LongName",/*Longdateformat:Tuesday,March14,1995*/
84 OracleEssbase11.1.2
Lesson4:DateTime,Text,andVBA
Exercise10 ExpandingEssbasewithDateLogic
TheEdenElectronicsCorporationneedstoreportonaseriesoftimebased
metrics.Thisexercisehasyouaddthosemetricstoyourmodel.
1) CreateanewASOcubeusingtheTIME.OTL.
2) LoadtheTIME.TXTdatafileintothecube.Itdoesnotrequirealoadrule.
3) AddthefollowingmetricsaschildrenoftheAnalysismemberintheAccounts
dimension:
a. Rolling5PeriodAvgSales
b. DateLastSold
c. DaysSinceLastSold
d. Day#ofCurrentFiscalYear
e. DateoutofStock(hint:considerusingtheTailfunction)
f. DayoutofStock(hint:considerusingtheTailfunction)
4) OpentheTIME.XLSspreadsheettovalidateyourformulae.TheAnswerssheet
containsdatacalculatedproperly.ConnecttheRetrievesheettoyourcubeand
refreshtocompareyourresultstotheproperanswers.
5) YoucanusetheTIMEC.OTLtoseecompletedformulaforthedesiredmetrics.
EndofExercise
Exercise11 OptimizingMDXFormulae
ThisexercisepresentsacasestudyforoptimizingandMDXformulae.Thesolutionpresentedin
thisexerciserepresentsonepossiblesoutiontothisoptimizationquestion.
1) MakeacopyoftheASOSampapplication.
2) AddamemberintheAccountsdimensionnamed3MonthContribution.Thegoalis
tocalculateaproducts3monthaverageTransactionscontribution%toall
products3monthaverage.
3) Enterthismemberformulafor3MonthContribution:
OracleEssbase11.1.2 85
Lesson4:DateTime,Text,andVBA
Round( ( (
([Time].CurrentMember,[Products].CurrentMember,[Transacti
ons]) +
([Time].CurrentMember.Lag(1),[Products].CurrentMember,[Tr
ansactions]) +
([Time].CurrentMember.Lag(2),[Products].CurrentMember,[Tr
ansactions]) ) /
(([Time].CurrentMember,Ancestor (Products.CurrentMember,
Products.Generations(2)),[Transactions]) +
([Time].CurrentMember.Lag(1),Ancestor
(Products.CurrentMember,
Products.Generations(2)),[Transactions]) +
([Time].CurrentMember.Lag(2),Ancestor
(Products.CurrentMember,
Products.Generations(2)),[Transactions]) ) ),4)
4) Savetheoutline,restrucrturealldataifprompted.
5) OpentheOptimization.xlsfile.
6) ConnecttheContributionsheettoyourcopyofASOSamp.Sampledatabase.
7) RefreshthesheetandwritedownthequeryresponsetimefromtheASOSamp
applicationlog.
8) OptimizetheMDXformulafor3MonthContirbution.
9) Savetheoutlineandrestructureexistingdata.
10) RefreshtheContributionsheetinSmartViewandwritedownthequeryresponse
timefromtheASOSampapplicationlog.
11) Repeatsteps810asmanytimesasnecessarytocontinuetooptimizetheretrieval
time.
EndofExercise
Exercise12 CreatingSmartViewTemplateswithVBA
ThisexercisewalksyouthroughtheprocessofcreatingasimpleVBAtemplateleveragingthe
SmartViewforOfficeVBAtoolkit.
1) Ifnotalreadyopen,openExcel.
86 OracleEssbase11.1.2
Lesson4::DateT
Time,Tex
xt,andV
VBA
2) InExcel,selectTools,thenM
Macro,thenV
VisualBasicEEditortoopen
ntheVisualB
Basic
ap
pplication.
3) Se
electFile>ImpotFile.
4) Brrowsetotheb
bindirectoryoftheSmartViewclientin
nstallationan
ndselectSmaart
Vieew.bas.
Anewmoduleisdisplayedw withalabeleddModule1(orlabeledwith
hthenexthigghest
moodulenumbeer,ifyouhaveealreadyinseertedoneorm
moremodules).
5) Ussethefollowingfunctionstocreateateemplateonsh
heet1:
a. HYPREFFRESH
b. HYPCONNECT
c. HYPMEENUVZOOMIN
N
d. HYPMEENUVZOOMO
OUT
e. HYPMEENUVPIVOT
6) Te
estyourtemp
plateusingtheeSample.Bassicdatabase.
7) OppentheVBA__Simple.xlswo orksheet.Commpareyourteemplatetoth
hisone.Youccan
alssousethistemplatetohelpwithyourssamplecode.
OracleEsssbase11.1..2 87
Lesson4:DateTime,Text,andVBA
8) Iftime,expandtheVBAtemplateasfollows(usetheSample.Basicdatabase):
a. AddadropdownlisttothesheetthatfillswiththechildrenofMarkets.
b. Basedontheactivememberinthedropdownlist,createabuttonthat
takesthechildrenofthatmemberandplacesthemonthegridasrow
headersforasalesreport.
c. Createabuttonthattakestheattributesofaselectedproductandshows
themintheExcelcellcommentforthatmember.
9) TestyourtemplateusingtheSample.Basicdatabase.
10) OpentheVBA_Extend.xlsworksheet.Compareyourtemplatetothisone.Youcan
alsousethistemplatetohelpwithyoursamplecode.
EndofExercise
88 OracleEssbase11.1.2