You are on page 1of 2

Key Figures

'Billed Quantity'
'Net Sales' ( with 'Cumulated' active )
Formula: 'Net Sales' * 2
Formula: 'Net Sales' > 1

Please note that the formula 'Netsales * 2' does not use the cumulated values
displayed for 'Net sales' (for comparison, see the result of the query without
'Cumulated' given below), therefore the formula seems to work wrongly. The reason
for this seeming mismatch is (explained in SAP note 1151957 (see point III) that
Local Calculations as 'Cumulate' are only a means of superficially changing the
display. In subsequent calculations the 'original values' determined by the OLAP
Engine are used.

Query Result without 'Cumulate' active:

REMARK
If you switch on the function 'Cumulate' for the two formulas as well, the query
result is

The formula 'Netsales * 2' displays the expected values since the function
'Cumulated' commutates with the calculation. This does not apply for the formula
'NS>1'. The correct result would be a 1 for all rows.

Query which uses 'Cumulative Value Display' for a characteristic

For characteristics, the display property 'Cumulative Display of Values' can be


used to get values cumulated regarding this Infoobject. In this case, the values of
all Basis Key Figures of the Query are cumulated regarding this characteristic,
these cumulated numbers can also be used in calculated key figures.

Our test query is defined as follows:

Key Figures

Basis key figure 'Billed Quantity'


Basis key figure 'Net sales'
Formula: 'Net Sales' * 2
Formula: 'Net Sales' > 1
Time charcteristic 0calmonth is in the drilldown.

Query Result

Please note the following:

All basis key figures are affected (cumulated)


the cumulated values are used in the formulas, e.g. see formula NS>1 for row MARCH
2004
for time characteristics, non-booked values are displayed as well! (APRL-JUL)
Query which uses a Variable of type Current Member

Please see the SAP online Documentation for more information to this new variable:
Current Member Variable. In the QueryDesigner you need to create a new variable and
choose 'Processing by = Replacement Path' and 'Replace Variable with Current
Member':

Our test query uses the following restricted key figure called 'Net Sales
Cumulated':

basis key figure 'Net Sales'


restricted to interval [ 02.2004 - variable CM_VAR_CALMONTH ]
variable CM_VAR_CALMONTH: Current Member variable for time charcteristic 0CALMONTH

The query contains three key figures:

Key Figures

basis key figure 'Billed Quantity'


key figure with CM variable:'Net Sales Cumulated'
formula: 'Net Sales Cumulated' * 2
Query Result

This is the desired result for the Formula 'NS * 2'. If it is required to have the
non-booked months displayed as well you can use feature Master Data Access Type:

Test Query CurrentYear - LastYear Comparison


This query should compare the current turnover with the one of the last year. The
values should be displayed per period and cumulated. The percentage share is
required as well.

Variable
CMV: Current member variable for 0FISCPER

Key Figures
basis key figure 'Turnover'
restricted key figure 'Turnover CY': Turnover and 0FISCPER with filter 001.2014 -
CMV
restricted key figure 'Turnover LY': Turnover and 0FISCPER with filter 001.2013 -
(CMV with offset -12); see screenshot below
calculated key figure 'Percentage Share CY/LY'

You might also like