ITC Session 6 Pivot Tables
ITC Session 6 Pivot Tables
1. Source data from a worksheet 2. Source values for Qtr3 Golf summary in the PivotTable report 3. PivotTable report 4. Summary of the source values in C2 and C8 from the source data
2
Each column or field in the source data becomes a PivotTable field that summarizes multiple rows of information
In the example , the Sport column becomes the Sport field, and each record for Golf is summarized in a single Golf item A value field, such as Sum of Sales, provides the values to be summarized
Cell F3 in the report contains the sum of the Sales value from every row in the source data for which the Sport column contains Golf and the Quarter column contains Qtr3
By default, data in the Values area summarize the underlying source data in the PivotChart report in the following way:
numeric values use the SUM function, and text values use the COUNT function
Grouping Data
According to the unique values in one or more fields
Automatically groups large amounts of data into smaller, more manageable categories
suppose you have a data source with a Region field where each cell contains one of four values: East, West, North, and South. The original data may contain thousands of records, but if you build your PivotTable using the Region field, the resulting table has just four rows - one each for the four unique Region values in your data
You can also create your own grouping after you have built your PivotTable
if your data has a Country field, you can build the PivotTable to group together all the records that have the same Country value When you have done that, you can further group the unique Country values into continents: North America, South America, Europe, and so on
5
Summarizing
Along with grouping, Excel also displays summary calculations for each group
Default calculation is Sum, ie., for each group, Excel totals all the values in some specified field
if your data has a Region field and a Sales field, a PivotTable can group the unique Region values and, for each one, display the total of the Sales values. Other summary calculations include
Count, Average, Maximum, Minimum, and Standard Deviation
Filtering
Enables you to view just a subset of the data
by default the PivotTables groupings show all the unique values in the field
However, you can manipulate each grouping to hide those that you do not want to view
Each PivotTable also comes with a Report area, that enables you to apply a filter to the entire PivotTable.
suppose your sales data also includes a Customer field By placing this field in the PivotTables Report area, you can filter the PivotTable report to show just the results for a single Customer
7
Both enable us
8
Data suitable for use in a Pivot Table must have these characteristics:
1. The top row of data contains column headers
Information needed to analyze spending data can come from several sources
10
Data field
numerical data value that can be measured
Dimensions
details about the fact
Ordered Date
Supplier
11
Agency Name
Example-1:
Given the data,
Which region sold the most? Which product is the bestseller? Are sales going up or down over time?
13
14
Suppose you work for a chain of sporting-goods stores. Every day you receive a report from each store that includes complete details on that days activities, such as
number of customers each hour, sales in each of 30 categories, items returned for refund or exchange, and number of employees on duty at different times of the day
But what good does this raw data do to you? With a PivotTable you can quickly and easily answer the following types of questions:
Which days of the week show the highest sales? Which categories of merchandise sell best at different times of the year? Are more employees scheduled to work during periods of the highest customer load? Do certain categories of merchandise suffer from unusually high rates of return or exchange?
15
Example-3: Banking
This table comprises a month's worth of new account information for a three-branch bank. The table contains 712 rows, and each row represents a new account. The table has the following columns:
The date when the account was opened The opening amount The account type:
CD, checking, savings, or IRA (Individual Retirement Account)
17
Example-3: Banking bank accounts.xlsx What is the daily total new deposit amount for each branch?
How many accounts were opened at each branch, broken down by account type? What's the dollar distribution of the different account types?
What types of accounts do tellers open most often? How does the Central branch compare to the other two branches?
18
In which branch do tellers open the most checking accounts for new customers?
Example-4: Grocery
Groceriespt.xlsx
Amount spent per year in each store on each product Total spending at each store
Total spending for each year
19
Benefits of PivotTable
Conformance to
most of the formatting options that are applied to regular Excel ranges and cells
Customizable
build each report the way you want
Dynamic
components can be easily moved, filtered, & added
Easy
Build, maintain & update
Performance
20
amazingly fast
22
Maximum number of unique items that can appear in a row, column, or page field
1,048,576
If you are using Excel 2003, the maximum number is 32,500; if you are using a version of Excel prior to 2003, the maximum number is 8,000
23
Chart types
You can change a PivotChart report to any chart type
except an xy (scatter), stock, or bubble chart
Source data
Standard charts are linked directly to worksheet cells. PivotChart reports are based on the data source of the associated PivotTable report Unlike a standard chart, you cannot change the chart data range in the Select Data Source dialog box of a PivotChart report
Formatting
Most formatting - including chart elements that you add, layout, and style - is preserved when you refresh a PivotChart report However, trend lines, data labels, error bars, and other changes to data sets are not preserved Standard charts do not lose this formatting once it is applied
24 you
Although you cannot directly resize the data labels in a PivotChart report, can increase the font size of the text to effectively resize the labels
Summary
25
especially when you have a long list of figures to sum and you want to compare several facts about each figure
Pivot Table: The most Technologically Sophisticated Component in Excel Does its job without using formulas
A pivot table can help transform endless rows and columns of numbers into a meaningful presentation of the data
27
However, a single click of the Refresh toolbar button forces a pivot table to use the latest data.