Documente Academic
Documente Profesional
Documente Cultură
With PivotTables
MOTIVATION
You are a manger of Global
Bike Incorporated and one of
your responsibilities is to
make decisions related to
ordering, promotions,
customer discounts as well as
monitoring and managing the
daily operations of the store.
You have a number of OLTP
systems to assist with the day
to day transactions. Each
month you are provided with a
report which displays each
sale. The format of the report
is illustrated below.
LEARNING METHOD
The learning method used is
guided learning. The benefit
of this method is that
knowledge is imparted
quickly. Students also acquire
practical skills and
competencies. As with an
exercise, this method
explains a process or
procedure in detail.
Exercises at the end enable
students to put their
knowledge into practice.
Product
Microsoft Excel 2007/2010
Level
Beginner
Focus
Multi-dimensional Reporting
Author
Paul Hawking
Version 2
June 2011
The primary purpose of an information system is to process information to produce reports to facilitate
decision making. Reports may appear in various formats and used to support a diverse range of
organisational decisions. Reports provide a mechanism for organising, analysing, presenting and
delivering information to end users. A common classification of reports is based on the types of
systems which they are built from. On-Line Transaction Processing (OLTP) systems as the name
suggests are optimised for transaction processing. They process real time information and are
accessed by many users. The reports are derived from the various business transactions and
predominately support tactical decision making.
An alternative information system is On-Line Analytical Processing (OLAP). This type of processing
allows users to analyse information by creating multidimensional reports. They deal with large
volumes of aggregated historical data. OLAP based reports are more flexible than the more
traditional reports produced by an OLTP system.
As mentioned previously OLTP reports provide information about particular transactions. The type of
reports an OLTP system produces could include:
June 2011
Pivot Tables
An example of a multidimensional reporting tool is Microsoft Excels PivotTable function. A
PivotTable is a tool which assists users with summarising large amounts of data into useful reports.
The PivotTables flexibility enables you to re-arrange the tables structure (columns and rows) until
you get the required information. The following exercises will highlight the role of PivotTables in multidimensional reporting
1. Save
PivotTable.xlsx to your local drive. Your workshop leader will
provide the files location.
2. Open
You will notice that there are more than 7,000 transactions and in their present format it is difficult to
identify trends. Think about how you would determine which Material sold the most and which Sales
Organisation had the the highest sales for this Material.
Microsoft Excel requires you to convert the data to table format before you can apply the PivotTable
features. In Table format you can perform some simple formatting, such as Filtering to improve the
report.
3.
Click
A2 to select a cell within the proposed table.
4.
Click
5.
Select
A dialog box appears to confirm your table range and header options.
6.
Click
June 2011
Filtering Data
You are returned to your worksheet and your Table has been formatted as to your selection. But you
will notice that your heading row now includes drop-down arrows.
The drop-down arrows allow you to sort and filter the data in your Table. This can be done
alphabetically, numerically, or aggregated. Currently the data is sorted by Sales Organisation then by
Material. If you want to see all the sales for a Material then it needs to be sorted by Material.
7.
Click
The Sorting dialog box is aware that the column selected is text and only displays the options
available to be performed on text.
8.
Click
to sort Material ascending.
You are returned to your worksheet and your data has been sorted. Notice that the drop-down arrow
has changed
, to indicate that the data has been sorted .
You can see the impact of the sorting by using the Undo
Access Toolbar.
9.
Click
10.
Click
and Redo
June 2011
You can also Filter the data based on the datas numerical value. A Filter is different to the Sort
function as only data that meets the Filter criteria will be displayed. While with Sort all data is
displayed. Currently Materials can be sold through two different Distribution Channels, either by the
Internet (IN) or by Wholesale (WH). You could use the Filter function to display all Internet.
11.
Click
You will notice that currently that all values are selected in the Text Filters area. You only want IN
(Internet) selected.
12.
Click
13.
Click
14.
Click
If you scroll through your data you will notice that only Internet sales appear.
Notice that the drop-down arrow has changed
Click
Tip If you place your mouse over the Filter icon the current Filter criteria will be displayed
17.
Click
All the data appears on screen. You can also apply Filters to numbers. For example you want to
only display sold Quantities greater than 90.
18.
Click
19.
Click
The sub-menu gives you an indication as to the type of numerical filters that can be applied to your
data. Some of the filters require you to enter the values that the data will be filtered on.
20.
Click
June 2011
21.
Type
Other than typing the value in the text box, you could have clicked the drop-down arrow
the values from your Table.
22.
Click
to display
Click
June 2011
Creating a PivotTable
Previously you formatted your data as a Table. By applying this format to the data you are provided
with extra functionality through the Table Design Ribbon.
24. Click
To create a PivotTable:
24.
Click
A dialog box appears to confirm the selection for the PivotTable. You will notice that there is a
flashing border around your Table.
26.
Click
A new worksheet appears on screen. On the right of the screen is a PivotTable Design Area. Also a
PivotTable Ribbon appears across the top of the screen.
The PivotTable Design Area lists all the column headings (fields) of your Table.
The bottom area allows you to drag the column headings to design your new PivotTable.
June 2011
To understand PivotTables better you are now going to create a PivotTable that indicates the Total
sales Quantity for each Sales Organisation
27. Click
next to the Sales Organisation field in the PivotTable Filed List to select it.
Notice that Sales Organisation appears in the Row Labels design area.
You now want to include the total Quantity for each Sales Organisation.
28.
Click
Notice that the field appears on the worksheet and is automatically placed in the
area.
Excel has determined that this field is numerical and is suggesting that that it should be aggregated
by summing the values. Important numerical values that form the basis of analysis in multidimensional reports are often referred to as key figures, measures, or facts.
June 2011
Your worksheet now lists all the orders and their total sales revenue.
Click
The Material field appears in the Row Labels design area and the Materials are listed with each
Sales Organisation.
This is an example of multi-dimensional reporting using the Sales Organisation, Material and
Qunatity dimensions. The next exercise will further demonstrate the flexibility of this type of
reporting.
This has been helpful in terms of the sales Quantity for each Sales Organisation and Materials within
this organisation. But maybe a more valuable report would be which Materials sold the most
Quantity in which Sales Organisations. In other words we want to change how the data is grouped.
30.
Click
31.
Click
next to Material in the Row Labels area to display the context menu.
The Material field now appears above the Sales Organisation field. Notice how this impacts on your
report.
June 2011
The Quantity total for each Sales Organisation is grouped under each Material and a grand total
(190936) of all Materials has been calculated at the bottom of the pivottable. Maybe to help you
better make decisions you would like see the total Quantity for each Material that has been sold.
Each Material is listed with it Total sales Quantity.
Reports should include a time dimension to indicate the period when the transactions occurred. The
report currently provides you with sales Quantity you dont know over what duration this occurred.
This can be quickly remedied by adding the Month/Year dimension.
33.
Click
10
June 2011
Click
next to Sales Organisation to select this field and add it to the PivotTable.
Drill-Up
This is where the user moves through the dimensions from a detailed view to a more summarised
view (less detail). For example:
35.
Click
The details of the Sales Organisations for the Material (7 Gear) are no longer displayed. However
the total sales Quantity is still visible. Notice that has changed to
indicating that there is further
data which can be displayed.
36.
Drill-Down
This is the opposite of Drill-Up. A user can navigate through the dimensions to display more detailed
data.
37. Click
next to order Jan-06 belonging to 7 Gear.
The detail for each Sales Organisation for that Material appears.
38.
11
June 2011
It is possible to navigate through the structure to view a subset of the data. For example a report
which displays all sales for a particular Material in all Sales Organisations and Distribution
Channels.
Alternatively a user could Slice the data to view all Materials sold via all Distribution Channels for a
particular Sales Organisation.
Through Dicing more granularity can be achieved. For example:
12
June 2011
You will now create another PivotTable to see Slice and Dice in action. Firstly you need to remove
the current PivotTable.
39.
De-select
40.
Click
next to Material, Distribution Channel, Sales Organisation, and Quantity to
select these fields .
Currently all records are displayed. To limit the view to a particular Material (Cruze Bike):
41. Click
next to Row Labels in to display a context menu.
42.
Click
43.
Click
44.
Click
13
June 2011
Your PivotTable has now been Sliced to only display the results for the Cruze Bike Material. You can
further Slice the data to show only the sales Quantity for a particular Distribution Channel (Wholesale)
in a Sales Organisation (Sydney).
45.
Right-Click
46.
Click
Filter then Keep Only Selected Items to filter on this Distribution Channel.
Your PivotTable has been adjusted accordingly. Notice that the design area indicates that Filters
have been applied to Material and Distribution Channel.
To remove these Filters:
47.
Click
menu.
next to Distribution Channel in the PivotTable Field List to display the context
48.
Click
49.
Click
50.
Click
51.
Click
52.
Click
You have now completed the tutorial on PivotTables. PivotTables can be a very powerful tool which
provides an extensive range of functionality. The previous exercises were designed to introduce you
to the concept of multi-dimensional reporting and its associated terminology. You should now be
aware of what advantages it provides compared to the more traditional OLTP reporting. However
there are some shortcomings especially handling large data volumes (million records). When the data
comes from different systems and is in different formats there is a lot of work required before it can be
manipulated in a PivotTable. You may have noticed with the original data that sales revenue was
included. However these figures were in different currencies which made calculations and
comparisons difficult. A data warehouse overcomes many of these issues.
14
June 2011
Following are some develop your skills exercises for you to assess your understanding of multidimensional reporting and PivotTables. Create reports to answer the following questions.
a)
b)
c)
15
June 2011