You are on page 1of 24

CASE STUDY

Big Data Analysis using


SAP Lumira
This case study introduces SAP Lumira as a data analysis and visualization
tool using three exemplary scenarios based on GBI sales data.

Product MOTIVATION PREREQUISITES


SAP Lumira This case study describes how to Before you use this case study, you
Release 1.20 analyze and visualize data using need to have installed the SAP
G.B.I. SAP Lumira. The scenario (three Lumira frontend software. Please ask
questions varying from easy to your instructor where to download
Level difficult) is based on sales data of the software and how to install it. The
the Global Bike Inc. enterprise in tool itself is very intuitive.
Undergraduate
the US and Germany.
Graduate
For more scenarios please check the
Beginner
The main learning objective is not SAP Lumira exercises.
to understand how to use SAP
Focus Lumira, but how to analyze a given
Big Data Analysis reporting request or problem and NOTES
based on possible options how to
This case study uses the Global Bike
Author present the best way to visualize
Inc. (G.B.I.) data set, which has been
Simha Magal the solution.
created exclusively for SAP UA
Tom McGinnis global curricula.
Stefan Weidner
The authors would like to thank the
Version many hardworking graduate students
2.30 at Grand Valley State University and
Otto von Guericke University
Magdeburg who contributed to the
development of this curriculum
material.

© SAP AG
CASE STUDY

Process Overview

Learning Objective Get familiar with data analysis and visualization. Time 75 min
Scenario Every day, Global Bike Inc. employees use various standard sales reports implemented
both in SAP ERP and SAP BW. In addition to that, some operational problems and management
requests need flexible ad-hoc reporting.
Employees involved Hanna Ortmann (Sales Manager Hamburg)
Alex Kuhn (Vice President Marketing US)
Andrea Marino (Sales Manager US)

Report 1 Hanna Ortmann (Sales Manager Hamburg) needs an ad-hoc Scenario details
report on bike sales amounts in a given year for a given customer.

Report 2 Alex Kuhn (Vice President Marketing US) is questioning


whether there are any products in the GBI portfolio that have not shown
seasonality in their sales data during recent years.

Report 3 Andrea Marino (Sales Manager US) and Hanna Ortmann (Sales
Manager Hamburg) would like to compare the average time span (in days)
between quotation and payment for sales orders in eight GBI sales areas in
the US and Germany.

© SAP AG Page 2
CASE STUDY

Create Report 1 – Bike Sales

Task Calculate how many bikes were sold in 2011 to customer “Alster Cycling”. Time 15 min
Short Description Use SAP Lumira to create a report to visualize in a column chart the number
of bikes sold to Alster Cycling in 2011.
Name (Position) Hanna Ortmann (Sales Manager Hamburg)

Report Design Report Design

Number of bikes sold to customer Alster Cycling in year 2011

• Number refers to the quantity measure.


• Bikes refers to the material group dimension.
• Customer & Year are dimensions available in the GBI data.

Report Result (Title of visualization result)

Quantity by Material Group Description, Customer Name and Year

First of all, to visualize data in SAP Lumira you need to select a chart type Column chart
(the default chart type is Column Chart). In our case, we will keep the
Column Chart default.

To calculate the number of bikes sold, the “Quantity” measure needs to be


used. There are two different options to achieve this.

Option 1 Select Quantity (sales quantity) from the Measures list. Quantity measure with
sum aggregation function

© SAP AG Page 3
CASE STUDY

Then, drag and drop the Quantity measure into the Y Axis.

Option 2 Click on the icon next to the Y Axis field to add the measure.

A list of available measures will appear. Select the Quantity measure.

After the selection, the Quantity measure is shown in the Y Axis.

Note Before you continue please check whether the aggregation function
of this measure is set to Sum since the overall quantity is needed.

Since amounts of bikes sold are required for the visualization, before Filter Material Group
Description
adding the Material Group Description to the Legend Color field a filter
needs to be applied on the Material Group Description. Then, select
Finished Bikes
Finished Bikes as the sold material group. This can be achieved in two
different ways.

Option 1 Click on “Options” next to the Material Group Description in


the Dimensions list.

© SAP AG Page 4
CASE STUDY

From the options list, select Filter…

Select the value Finished Bikes. Then click on the OK button.

OPTION 2 Click on within the filter space. A dimensions


list will appear. Select the Material Group Description, then select the
value Finished Bikes as shown in OPTION 1.

© SAP AG Page 5
CASE STUDY

Add the Material Group Description dimension into the Legend Color Add Material Group
Description Dimension into
field by either drag & drop … Legend Color field

… or by clicking on the icon next to the Legend color field, and then
select the dimension from the dimensions list.

After filtering the material group description, for your task another filter Filter Customer Name
(Customer Name) needs to be added and Alster Cycling needs to be Alster Cycling
selected as a value for Customer Name dimension. Then add to the Legend
Color field as well. This can be achieved in two different ways:

OPTION 1 Click on “Options” next to the Customer Name in the


Dimensions list.

From the options list, select Filter…

Select the value Alster Cycling , then click on the OK button.

© SAP AG Page 6
CASE STUDY

OPTION 2 Click on within the filter space. A dimensions


list will appear. Select the Customer Name, then select the value Alster
Cycling as shown in OPTION 1.

Add the Customer Name dimension into the Legend Color field by either Add Customer Name
Dimension into Legend
drag & drop … Color field

… or by clicking on the icon next to the Legend color field, and then
select the dimension from the dimensions list.

As a last step, filter the Year dimension to retrieve data which is related to Filter year
the year 2011 only. This can be achieved in two different ways: 2011

OPTION 1 Click on “Options” next to the Year in the Dimensions list.

From the options list, select Filter…

© SAP AG Page 7
CASE STUDY

Move the year domain to be referring only to year 2011, then click on the
OK button.

OPTION 2 Click on within the filter space. A dimensions


list will appear. Select the Year, then define the year domain to refer only
to year 2011 as shown in OPTION 1.

Add the Year dimension into the X Axis by either drag & drop … Add Year Dimension into
X axis field

…or by clicking on the icon next to the X Axis field, and then select the
dimension from the dimensions list.

© SAP AG Page 8
CASE STUDY

Once the measures and dimensions are dragged & dropped, the chart input
should look like the screenshot below.

Entry check

The task result should look like the screenshot below. Result

© SAP AG Page 9
CASE STUDY

Create Report 2 – Seasonality

Task Is there any material that does not display seasonality? Time 30 min
Short Description Use SAP Lumira to visualize in a line chart the achieved revenue per month
compared to the average revenue for each material.
Name (Position) Alex Kuhn (Vice President Marketing US)

Report Design Report Design

Is there any Material that doesn’t display seasonality?

• Material refers to the material master description dimension.


• Seasonality is the line chart of the changing revenue per month in a
given year for each material compared to the average revenue
within the same year’s month, thus Revenue measure, Months &
Year dimension must be used within a Line Chart, in addition to
the created measure Average Revenue.

Report Result (Title of visualization result)

Revenue by Material Master Description and Month

First of all, to visualize data in SAP Lumira, you need to select a chart type Line chart
(the default chart type is the column chart). In this case, we will choose a
Line Chart type where seasonality can be best represented.

In order to display Seasonality, the Revenue measure needs to be used. Revenue measure with
sum aggregation function
There are two different options to achieve this.

OPTION 1 Select Revenue (sales revenue) from the Measures list.

© SAP AG Page 10
CASE STUDY

Then, drag and drop the Revenue measure into the Y Axis.

OPTION 2 Click on the icon next to the Y Axis field to add the
measure.

A list of available measures will appear. Select the Revenue measure.

After the selection, the Revenue measure is shown in the Y Axis:

Note Before you continue please check whether the aggregation function
of this measure is set to Sum since the overall revenue is needed.

Seasonality in general means periodicity on a given calendar or calendar Add Month Dimension into
X axis field
period. Thus, the Month dimension needs to be used as well. There are two
different options to achieve this.

© SAP AG Page 11
CASE STUDY

OPTION 1 Select Month from the Dimensions list.

Then, drag and drop the Month dimension into the X Axis.

OPTION 2 Click on the icon next to the X Axis field to add the
dimension.

A list of available dimensions will appear. Select the Month dimension.

After the selection, the Month dimension is shown in the X Axis.

For illustration purposes of Seasonality, the average of the achieved Calculate average of
revenue measure
revenue needs to be calculated and added into the Y Axis aligned with the
total revenue. This can be achieved as follows:

On the Revenue measure within the Y Axis field, select “Options”.

© SAP AG Page 12
CASE STUDY

Select Add Calculate  Running Average.

After the addition, the average revenue will be show in the Y Axis.

The report question is based on material seasonality. In other words, the Add the Material Master
Description into the
revenue and the average revenue per month for each material need to be TRELLIS-Rows
visualized. Therefore, the Material Master Description dimension needs
to be used. There are two different options to achieve this.

OPTION 1 Select Material Master Description from the Dimensions


list.

Then drag and drop the Material Master Description dimension into the
TRELLIS-Rows.

© SAP AG Page 13
CASE STUDY

OPTION 2 Click on the icon next to the Rows field within the
TRELLIS section to add the dimension.

A list of available dimensions will appear. Select the Material Master


Description dimension.

After the selection, material master description is shown in the Y Axis.

Once the measures and dimensions are dragged & dropped, the chart input Entry check
should look like the screenshot below.

On the chart “Option”, select Show Data Labels to display values upon Show Data Labels
the created chart.

© SAP AG Page 14
CASE STUDY

The task result should look like the screenshot below. Result

Note By scrolling through the material seasonality charts you will be able
to notice that Air Pump, Elbow Pads, First Aid Kit, Knee Pads, Off Road
Helmet, Repair Kit, Road Helmet, T-shirt, Water Bottle, and Water Bottle
Cage don’t display seasonality.

© SAP AG Page 15
CASE STUDY

Create Report 3 – Average days between quotation and payment

Task Calculate the average number of days between quotation and payment Time 30 min
per sales area excluding the results of year 2013.
Short Description Use SAP Lumira to visualize in a column chart the average number of days
between the quotation and payment receipt for each sales area excluding the 2013 result from the
presented values.
Name (Position) Andrea Marino (Sales Manager US)
Hanna Ortmann (Sales Manager Hamburg)

Report Design Report Design

Average number of days between quotation & payment per sales area
(exclude year 2013)

• Average number refers to the average aggregation function.


• Days between quotation & payment refers to the day difference
between the quotation date and payment date. As you can notice,
there exists neither a dimension nor a measure that provides the
desired value. Thus, a new dimension needs to be created based on
the desired calculation, and then create a measure upon it.
• Sales Area refers to the sales area description dimension.
• Exclude year 2013 filters the year dimension in order to exclude
the 2013 values from the result.

Report Result (Title of visualization result)

Days Difference between Quote & Payment by Sales Area Description

First of all, to visualize data in SAP Lumira you need to select a chart type Column chart
(the default chart type is Column Chart). In our case, we will keep the
Column Chart default.

© SAP AG Page 16
CASE STUDY

In order to display the average number of days between quotation &


payment and since there exists neither a dimension nor a measure within
the data set, a new dimension with the desired calculation needs to be
created.
Click on the “Option” next to the Payment Receipt Date Dimension, then
select Convert to Date and choose the MM/dd/yyyy format as follows:

Click on “Option” next to the Quote Date dimension, then select Create Create calculated
dimension
Calculated Dimension.

Name the new dimension Days Diff between Quote & Payment.

To calculate the days difference, double click on the function


DateDiffInDays(start, end) from the available functions in the Function
lists.

After adding the function to the dimension’s formula, determine the


function inputs, where the start input needs to be assigned to the Quote
Date dimension as the end input needs to be assigned to Payment Receipt

© SAP AG Page 17
CASE STUDY

Date dimension.

On the formula working space, delete the word start and replace it by
{Quote Date} either by manual writing or by a double click on the Quote
Date dimension in the Dimensions list.

Analogous to the previous step, delete the word end and replace it by
{Payment Receipt Date} either by manual writing or by a double click on
the Payment Receipt Date dimension in the Dimensions list.

Finally, the formula should look like shown below.

Dimension formula

After defining the calculated dimension’s formula, click on the OK button.

© SAP AG Page 18
CASE STUDY

Create a measure based on the created dimension. Click on “Option” next Create a measure
to the Days Diff between Quote & Payment dimension, then select Create
a measure.

After you have the dimension as a measure within the Measure list, change Average aggregation
function
the aggregation function of this measure to be set to Average. This can be
achieved through clicking on “Option” next to the added measure, then
select Change Aggregation  Average.

© SAP AG Page 19
CASE STUDY

Note Before going to the next step, ensure that the aggregation function of
the Days Diff between Quote & Payment measure is set to Average.

There are two different options to add the Days Diff between Quote & Add measure to Y axis
Payment measure into the Y Axis.

OPTION 1 Select Days Diff between Quote & Payment (Average Days
Difference between the Quotation and Payment) from the Measures list.

Then drag and drop the Days Diff between Quote & Payment into the Y
Axis.

OPTION 2 Click on the icon next to the Y Axis field to add the
measure.

© SAP AG Page 20
CASE STUDY

A list of available measures will appear. Select the Days Diff between
Quote & Payment measure.

After the selection, Average days difference is shown in the Y Axis.

The average days difference is required per sales area. In other words, the Add Sales Area
Description into Legend
result needs to be grouped by sales area. Therefore, the Sales Area Color field
Description is used. There are two different options to achieve this.

OPTION 1 Select Sales Area Description from the Dimensions list.

Then, drag and drop the Sales Area Description dimension into the Legend
Color field.

OPTION 2 Click on the icon next to the Legend Color field to add
the measure.

© SAP AG Page 21
CASE STUDY

A list of available dimensions will appear. Select the Sales Area


Description dimension.

After the selection, sales area description is shown in the Legend Color
field.

As a last step, filter the Year dimension to exclude data which are related Exclude Year 2013 from
result
to 2013 only. This can be achieved in two different ways:

OPTION 1 Click on “Options” next to the Year in the Dimensions list.

From the options list, select Filter…

Move the year domain to exclude the year 2013, then click on the OK

© SAP AG Page 22
CASE STUDY

button.

OPTION 2 Click on within the filter space. A dimensions


list will appear. Select the Year, then define the year domain to exclude
year 2013 as shown in OPTION 1.

Once the measures and dimensions are dragged & dropped, the chart input Entry check
should look like the screenshot below.

On the chart “Option”, select Show Data Labels to display values upon Show Data Labels
the created chart.

The task result should look like the screenshot below. Result

© SAP AG Page 23
CASE STUDY

© SAP AG Page 24

You might also like