






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This tutorial provides an overview of creating pivot tables and pivot charts in Microsoft Excel. The screenshots are from Office 2013.
Typology: Exams
1 / 10
This page cannot be seen from the preview
Don't miss anything!







This tutorial provides an overview of creating pivot tables and pivot charts in Microsoft Excel. The screenshots are from Office 2013. Things may look a little different if you have an earlier version (or the Mac version!) of Excel. First, let’s look at the data cube with which we will be working. The data cube is contained in the file “In-Class Exercise #8 - Salesperson Cube - for class.xlsx.” There is information about 800 sales transactions that occurred from 2008 to 2010 at a fictitious company. Here are the first few records: Keep in mind that this is the entire data set in a joined, cube format. It’s not a typical, large-scale data cube – that would only contain summary data. In this tutorial, you’ll be basically doing the summarization work of the dimensional engine by aggregating data as you need it. This works well for small data sets and gives you a lot of flexibility, but as your data set gets very large this would need to be implemented as a summarized cube. The underlying star schema has three dimensions – Salesperson, Country, and Time. You can see data associated with each of those dimensions. For example, the Salesperson dimension consists of Salesperson LN, Salesperson FN, and Salesperson Salary. So a diagram of our data cube looks would look like the image on the right. There are only two values for the Country dimension (USA and UK), but there are a lot for Salesperson and Time. In fact, there are too many to draw so we’ve used arrows to indicate that the cube keeps going in that direction for a while. But this gives you a feel for the structure of our data mart, and it also indicates to us that we will be able to aggregate and filter our results by salesperson, time, and country. Notice time is expressed two different ways in our table. The first is with day, month, and year as separate attributes; the second as a standard date/time value (mm/dd/yyyy). It isn’t necessary to do this – a single Order amount Order amount Order amount Order amount Order amount Order amount Order amount Order amount Order amount Country Salesperson USA Bob Buchanan Martha Suyama Paul Peacock Susan Leverling 7/10/ Order amount UK 7/11/ 7/12/ 7/15/ 7/16/ 7/17/ Susan Leverling …more salespeople …more time periods
date attribute would work just fine – but this allows us to look at a particular month (or year) a little more easily. Finally, order amount is our measured fact. So the indvidual order is the level of granularity for the fact table. Part 1. Create a basic pivot table
by Salesperson LN and Order Year.
Amount and not the count! (Follow the same steps as in Part 1, Step 6.) Your pivot table should look like this:
Next to “Row Labels” at the top of the table there is a pull-down menu ( ). From that menu choose “More Sort Options…” (Note: This option may not be available for previous Mac versions. If so, download the latest Mac version for free by following the instructions here: https://computerservices.temple.edu/office-365)
and your table will look like this: The numbers in bold still give us yearly totals for each salesperson. But let’s say we just wanted to see sales during the holiday season (November and December). We’ll need to apply a filter.
and you’ll see what I mean). This would have been just as easy in this case because there were only 12 values to choose from. But if you had many possible values it is usually easier just to enter the range through the dialog box.
Let’s define “low volume” as less than $200 of sales in a day. So first let’s rearrange the fields in the pivot table that looks at total sales (Sum of Order Amount) per salesperson (Salesperson LN) per day (Order Date). It should look like this:
0 50000 100000 150000 200000 250000 Total Total Salesperson LN Sum of Order Amount 0 20000 40000 60000 80000 100000 120000 140000 2008 2009 2010 Order Year Salesperson LN Sum of Order Amount And we can visually verify what we already knew – that Peacock was our best salesperson.