You are on page 1of 2

SAP BW Release 3.5/7.

0
Session 4: Creating Calculated Key igures SAP BW !raining
Session 4: Creating Calculated Key igures
Session "#$ecti%e
In this exercise you are going to create Calculated Key Figures, both at the Infoprovider as well
as the Query level. Also, you will be having a feel of how to create local formulae at the Query
evel.
!as& ': Create a Calculated Key igure at (n)o*ro%ider +e%el
)or ,eli%ered -uantity
a! aunch the Query "esigner, through the #usiness $xplorer Query "esigner
b! From the %&ew Query' icon, choose the Infoprovider ()"*C(+, on which the ,uery
needs to be designed.
c! In the Query "esigner, &ew Query screen you need to select the %Key Figure' on the
left hand side frame and right clic- to select %&ew Calculated -ey Figure'.
d! $nter the "escription of the &ew Calculated Key Figure as %"elivered Quantity
./0.roup &umber1'.
e! "rag 2Invoiced ,uantity' from the Key Figure list to the "etail view 3 Formula pane.
f! 4hen Clic- on the %5% 6minus! sign button to include in the formula pane 3 "etail view .
g! &ow drag 27pen orders ,ty2 from the Key Figure list to the Formula pane. )o we have
the %"elivered Quantity' 8 2Invoiced ,uantity' 5 27pen orders ,ty2.
h! If the Formula is not syntactically correct, you will see it as underlined in /ed.
i! $nter the technical name as %9*CKF*"$*Q4:*./0.roup &umber1'. ;ress 7K to
confirm.
<! :ou can now find the above Calculated Key Figure added under the Key Figure 51
Calculated Key Figure folder in the left side pane. 4his can be used in any Query
which is build on this Infoprovider.
!as& .: Create a Calculated Key igure at -uery +e%el )or "rder ull)il/ent
Percentage
a! Add )old5to5;arty, =aterial to the /ows )ection. In the Columns )ection add the Key
Figures %7pen 7rders' and %Incoming 7rders'.
b! /ight Clic- on the Key Figures )tructure and Choose %&ew Formula'.
c! $nter the description as %7rder Fulfilment ;ercentage ./0Your group number1'
d! In the Formula pane, you need to declare the formula for finding the > share of the
7rders fulfilled to the Incoming 7rders.
1
SAP BW Release 3.5/7.0
Session 4: Creating Calculated Key igures SAP BW !raining
6?int@ ( 'Incoming Orders' - 'Open orders' ) %A 'Incoming Orders' !
e! If the Formula is not syntactically correct, you will see it as underlined in /ed.
f! &ow since the formula is correct, press 7K to confirm.
g! )ave the Query with the technical name 9*()"*C(+*Q*./0your group
number1*CKF and description as )ales 7rders Query CKF ./0your group
number1 by the %)ave Query' icon.
h! aunch the Query in the #$x Analyser.
!as& 3: Create a or/ula to do a conditional Calculation
a! 7pen the Query created in 4as- A, through the path #usiness $xplorer 7pen
Queries. )earch your ,uery by giving the technical name. 7nce the ,uery is located,
)elect the ,uery and clic- on 7K. 7nce it is open clic- on B477)C and then B$"I4
QD$/:EC option.
b! /ight Clic- on the Key Figures )tructure and Choose %&ew Formula'.
c! $nter the description as %;ending 7rders 1 +(((('
d! In the Formula pane, you need to declare the formula for displaying the amount of
fulfilled orders, where the number of fulfilled orders is 1 +((((, else show the 7pen
7rders.
6?int@ Fulfilled 7rders 8 Incoming 7rders F 7pen 7rders !
( ( 'Incoming Orders' - 'Open orders' ) > 10000 ) *
( 'Incoming Orders' - 'Open orders' ) + 'Open orders'
e! If the Formula is not syntactically correct, you will see it as underlined in /ed.
f! &ow since the formula is correct, press 7K to confirm.
g! )ave the Query by the %)ave Query' icon.
h! aunch the Query in the #$x AnalyGer.
Also try out t0e ot0er unctions Pro%ided i.e 1",(23451",(6345Result5 "%erall Result5
1"7RR345 etc.
2

You might also like