You are on page 1of 9

Exporting Data from Essbase Using Report Script

Description: BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to end Hands-on Beginners G ide !or "racle H#perion Essbase, Planning, H$%, $&'%, $(. The doc ment shows #o how to e)tract data !rom one Essbase c be sing (eport Script and *oad into another c be. +oin o r pro!essional training program and learn !rom e)perts.

Histor#, -ersion 0.1

&escription .hange (eview21

/ thor /mit Sharma

P blish &ate 34th 5ov 3013

www.bispsol tions.com

www.bisptrainigs.com

www.h#periong r .com

Page 1

Contents
.................................................................................................................................................... 3 .ontents....................................................................................................................................... 3 Introd ction, ................................................................................................................................ 6 E)ample21 .................................................................................................................................. 7 E)ample23 .................................................................................................................................. 8 E)ample26 .................................................................................................................................. 9 E)ample2: .................................................................................................................................. ; E)ample27 .................................................................................................................................. 4

www.bispsol tions.com

www.bisptrainigs.com

www.h#periong r .com

Page 3

Introduction:

%oving &ata between Essbase . bes, There ma# be sit ations where #o re< ire to migrate the data !rom one Essbase c be to another Essbase c be. "ne o! the possible wa#s is to do this =ob b# sing report script. (eport script is an e)cellent approach to e)act data s bset !rom Essbase c be. >e have sed co ple o! e)amples to demonstrate how can be achieved. Below are the possible wa#s to e)port data !rom Essbase, in this doc ment we are going to e)port data sing (eport Script. 1. Smart -iew ?>or@ing with ' er# &esignerA 3. E)porting &ata Bsing the &/T/ECP"(T .ommand 6. E)porting &ata Bsing %a)* :. E)porting Te)t &ata Bsing .alc lation Scripts 5. Exporting Text Data Using Report Scripts In order to demonstrate this e)ample, we have two Essbase servers Done is so rce and another one is targetE. 5ote , Both so rce and target data so rce sho ld have same o tline str ct re. So rce . be Target So rce . be

So rce /pplication and &atabase

Target /pplication and &atabase

www.bispsol tions.com

www.bisptrainigs.com

www.h#periong r .com

Page 6

So rce . be

Target . be

Step21 , .reate (eport script

www.bispsol tions.com

www.bisptrainigs.com

www.h#periong r .com

Page :

Example#

Exacting data from Source Data Cube and load into target using different formatting options.
FP/GEDScenarioE F."*B%5DGearE F("> DGepH(egion, Prod ct, G*H/cco ntsE F.HI*&(E5 I5/HEastI FI&ES.E5&/5TS I$JBI K &E.I%/* 1 >I&TH 4 SBPB(/.LETS SBP."%%/ %ISSI5GTECT I I B5&E(S."(E.H/( I I SBPHE/&I5G 5"I5&E5TGE5 SBP$EE& (">(EPE/T

M /ct al +an $eb FI&ES.E5&/5TS I%arginI N

" tp t

E)planation, /bove script displa#s FP/GEDScenarioE /ct al in Page *a#o t, F."*B%5DGearE +an, $eb in col mn *a#o t, F("> DGepH(egion, Prod ct, G*H/cco ntsE (egionOI5/HEastI Prod ct O I&ES.E5&/5TS I$JBI and %eas res as G*H/cco nts %argin. The data !ile has been created in s ch a wa# that, it can be loaded to target s#stem application database. In order to ens re that is compatible with target c be, m ltiple !ormatting options are sed DSBPHE/&I5G SBP."%%/E. The !inal step is to load data into target c beDi! re< ire the dataload r le !ile is to be createdE

www.bispsol tions.com

www.bisptrainigs.com

www.h#periong r .com

Page 7

Example#!

Exacting data using "ttribute Dimension.

Explanation: In the above e)ample, we are accessing the prod cts based on /ttrib te &imension 5ame .ons merHT#pe. >e want onl# those prod cts to be migrated to target c be which are cons med b# Lids. It loo@s to the end se as i! attrib te is a real dimension on one hand, on another it doesnt add an# overheads to the Essbase c be siPe. Go can see in the o tp t window, Prod ct ?100-10A is visible, as it is associated with attrib te dimension member ?LidsA. "TTRI#UTE (et rns all base-dimension members associated with a speci!ied attrib te. S$ntax F/TT(IBBTE att%br5ame

www.bispsol tions.com

www.bisptrainigs.com

www.h#periong r .com

Page 8

Exacting Top 5 &roducts from source cube and load into target.

Example#%

QQESSH*"./*E EnglishHBnitedStates.*atin1RBinar# '&"(E)Scenario*(ep+Region*,ear/ct al I5ew Gor@I +an 'C./U01)(/+"ccountsSales 'R.2 ) &roduct*ev0,Prod ct K &E.I%/* 1 >I&TH 4 M 'T.&)%*3Datacol) -N Explanation: In the above e)ample, we are e)tracting Top 6 prod cts based on Sales. %an# o! time d e to high load d ring pea@ b siness ho rs, #o li@e to migrate the data into another c be which are e)tensivel# being sed. This can be done b# sing Top ! nction. /s #o see in this e)ample, the Top ! nction ta@es two parameters, n mber o! elements and &ata .ol mn position n mber. T.& (et rns rows with the highest val es o! a speci!ied data col mn. S$ntax FT"P DSFrowgro p&imensionT,U FrowsT, Fcol mnTE

www.bispsol tions.com

www.bisptrainigs.com

www.h#periong r .com

Page 9

Exacting data source cube and load into target using Restrict)25ere- Clause.

Example#4

'&"(E)Scenario*(ep+Region*,ear/ct al I5ew Gor@I +an 'C./U01)(/+"ccountsSales 'R.2 ) &roduct*ev0,Prod ct 'RESTRICT )3Datacol) -67K &E.I%/* 1 >I&TH 4 M N Explanation: In the above e)ample, we are e)tracting data based on condition, in report script the condition can be applied sing (EST(I.T .ommand, it wor@s e)actl# as where cla se in S'* < er#, the di!!erence lies it wor@s !or m lti dimensional view. The 1 st arg ment is &atacol position, conditional operator and val e R&atacolD1ET0 RESTRICT The (EST(I.T command speci!ies the conditions that the row m st satis!# be!ore it becomes part o! a res lt set. S$ntax F(EST(I.T DFcol mn V val eT FoperatorT Fcol mn V val eTKFlogical"peratorTFcol mn V val eT FoperatorT Fcol mn V val eTME

www.bispsol tions.com

www.bisptrainigs.com

www.h#periong r .com

Page ;

Exacting data source cube and load into target using Restrict)25ere- Clause.

Example#5

Example#5 Calculation '&"(E )(/+"ccounts* &roductSales I100-10I 'C./U01 )Scenario* ,ear/ct al 'tr1 'tr3 8C"/CU/"TE C./U01 9:alf ,r Sales9 ; >I&TH 39 >I&TH 30 30 31 M <!

'R.2 )(ep+RegionFI.HI*& I5/HEastI N Explanation: In the above e)ample, we have sed col mn calc lation ! nction. The so rce o tline Time &imension hierarch# doesnt have ?Hal! #earA, however the target c be ma# have. There!ore, we want to calc late the Hal! Gear on the !l# and load to target c be. The calc late col mn ! nction ta@es ?*abelA 9:alf ,r Sales9 and E)pression <!. C"/CU/"TE C./U01 .reates a new report col mn, per!orms on-the-!l# calc lations, and displa#s the calc lation res lts in the newl#-created col mn. Each new calc lated col mn is appended to the right o! the e)isting col mns in the order in which it is created, and is given the ne)t available col mn n mber. See "(&E( !or more in!ormation on col mn n mbering and ordering. S$ntax K ./*.B*/TE ."*B%5 Inew.ol mnI O e)pression M

www.bispsol tions.com

www.bisptrainigs.com

www.h#periong r .com

Page 4