OLAP Business Scenarios

Embed Size (px)

Text of OLAP Business Scenarios

OLAP Business ScenariosStefan BiedensteinDevelopment Architect BI, SAP AG

Barbara NeumannProduct Manager BI, SAP AG

Learning Objectives

As a result of this workshop, you will be able to:Precalculate a value set and use it via a variable within a query Check the definition of any key figure in a query result (on the Web) using the Explain Query Use the function Constant Selection Create a scenario to display slow-moving articles Use the functions of internal business volume elimination

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 2

Agenda

Precalculated value sets Explain query Constant Selection Slow-moving articles Elimination of internal business volume Exercises Summary

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 3

Precalculated Value Sets

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 4

Precalculated Value Sets - OverviewBusiness case: use a very expensive query (e. g. Top N with a lot of customers) as the input for another query Possible in 2.x with the pre-query functionality, but problems with performance Solution in 3.0:precalculate the input query with the Reporting Agent use result as input of the second query by defining a corresponding variable

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 5

Precalculated Value Sets Value Set QueryCreate a query that displays the Top 10 Ship-to parties based on the open orders.

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 6

Precalculated Value Sets - Reporting Agent SettingsSelect Characteristic

Select Query

Technical name to be used

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 7

Precalculated Value Sets Variable Definition

Create a new variable for Ship-to Party Processing by User entry / default value Variable represents Precalculated Value Set Variable is mandatory Variable ready for input only if there are several precalculated value sets

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 8

Precalculated Value Sets

Demo

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 9

Explain Query

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 10

Explain Query - Overview

With BW 3.0 and above, highly sophisticated calculations can be done within a query:Complex Calculated Key Figures Restricted Key Figures Calculations for single cells in a query result using the Cell Editor Constant Selection

The function of the Explain Query allows the user to analyze the calculations for the values in each single cell of a query on the Web.

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 11

Explain Query Analysis of a Key Figure ValueExample for the analysis of a value calculated with a formula based on a reference cell

Use Key Figure Definition from the enhanced context menu to analyze the calculation behind the cell value

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 12

Explain Query Enhanced Analysis

Expand the Request ID within the Explain Query to check the topicality of the data

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 13

Explain Query

Demo

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 14

Constant Selection

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 15

Constant Selection - OverviewIn the Query Designer, you select the data you want to show during the runtime of the report. You can use navigation and filtering to make further changes to the selection during runtime (the selection is restricted further). The new version of the Query Designer allows you to specify a constant selection. This means that navigation or filtering has no effect on the selection during runtime. Thus, you can easily select reference values that remain unchanged during runtime. The constant selection is very helpful, for example, in market share calculations. In a product list (product in drilldown), you do not want to see the absolute sales revenue, but rather the sales revenue in relation to a specific region.

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 16

Market Share Analysis Without Constant Selection

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 17

Market Share with Constant Selection (I)It is possible to define parts of the selections (individual characteristics and their filter values) as constant. Only the InfoObject in this selection remains constant during navigation and filtering. In the Selection Editor, you can select an InfoObject as a constant in the context menu.

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 18

Market Share with Constant Selection (II)

Result: Market Share after filtering three material values

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 19

Market Share with Global Constant Selection (I)You can define the complete selection of a restricted key figure as constant by using the properties dialog of the restricted key figure. The key figure will not be affected by navigation in the query.

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 20

Market Share with Global Constant Selection (II)

Market Share (World) After Filtering Three Material Values

. . .

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 21

Constant Selection

Demo

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 22

Slow-Moving Articles

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 23

Slow-Moving Articles - OverviewBusiness scenario: display articles that werent sold at all or only in very low quantities Solution in BW 3.0:Use the new functionality InfoObject as InfoProvider Use an InfoObject as one component of a MultiProvider Use the new functionality Constant Selection Use the new functionality Display values not posted Set a condition to display only the slow-moving articles

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 24

Slow-Moving Articles - InfoObject as InfoProvider

In the InfoObject maintenance, choose the tabstrip Master data/texts. Enable the InfoObject as InfoProvider by setting the flag and assigning it to an InfoArea.

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 25

Slow-Moving Articles - Row Counter For Tabular DataIn each tabular InfoProvider the generic key figure 1ROWCOUNT is automatically visible 1ROWCOUNT counts the number of rows in a tabular InfoProvider Tabular InfoProviders are:ODS InfoObject

The row counter is a key figure in a tabular InfoProvider, thus providing the opportunity for efficient counting in a MultiProvider

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 26

Slow-Moving Articles - Create MultiProvider

Create a MultiProvider. It must contain the master data InfoObject and the InfoCube to which the master data InfoObject belongs.

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 27

Step I: Create a Query using Number of Records

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 28

Step I: Execute Query using Number of RecordsQuery shows Sold-to party coming from InfoCube and InfoObject Sold-to party The key figure Number of Records is filled from the InfoObject Sold-to party Cal. Year/Month is not an attribute of InfoObject Soldto party Setting a filter on Cal. Year/Month removes the characteristic values and the key figure values coming only from InfoObject Sold-to party

Query: PM_ROW_CT/PM_EMPTY_1 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 29

Constant Selection on Master Data InfoProvider

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 30

Slow-Moving Articles Settings for 0INFOPROVCharacteristic 0INFOPROV is automatically added to each MultiProvider Constant Selection on this characteristic has a special semantic:

Constant Selection: Select key figure values ignoring all selections on missing characteristics in this InfoProvider Display Values Not Posted: Select characteristic values ignoring all selections on missing characteristics in this InfoProvider

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 31

Step II: Query with Constant SelectionThis query is set up with constant selection for Number of Records

As opposed to the 1st step, the values for Number of Records are shown even after filtering for Cal. Year/Month

Query: PM_ROW_CT/PM_EMPTY_2 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 32

Step III: Query with Display values not postedThis query is set up with constant selection and display values not posted for Number for Records

A selection on Cal. Year/Month does not have any effect on records coming from InfoObject Sold-to party

Query: PM_ROW_CT/PM_EMPTY_3 SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 33

Step IV: Execute Query with Condition

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 34

Slow-Moving Articles

Demo

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 35

Elimination of Internal Business Volume

SAP AG 2003, TechED EMEA, BW351, Biedenstein/Neumann / 36

Elimination of Internal Business Volume - OverviewThe elimination functionality supports the accounting principles of multientity consolidation for multiple simultaneous hierarchies. BW eliminates the Key Figure value; this is different from legal consolidation, which is provided in SEM-BCS. Prerequisites: Two Characteristics: Sender and Receiver, sharing the same Master Data Some examples areSending Cost Center Receiving Cost Center Business Area Partner Bu