Unit 5: Visualization of Data M5-4: Organizing Many Categorical Variables

Similar documents
COMP1000 / Spreadsheets Week 2 Review

New Perspectives on Microsoft Excel Module 5: Working with Excel Tables, PivotTables, and PivotCharts

Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts. Microsoft Excel 2013 Enhanced

COMM 391 Winter 2014 Term 1. Tutorial 1: Microsoft Excel - Creating Pivot Table

GO! with Microsoft Excel 2016 Comprehensive

To complete this workbook, you will need the following file:

PIVOT TABLES IN MICROSOFT EXCEL 2016

2013 ADVANCED MANUAL

Formulas, LookUp Tables and PivotTables Prepared for Aero Controlex

1. What is a PivotTable? What is a Cross Tab Report?

How to insert table in Excel?

Data Visualization via Conditional Formatting

Microsoft Excel 2013/2016 Pivot Tables

Excel Tables and Pivot Tables

Les s on Objectives. Student Files Us ed. Student Files Crea ted

WORKING WITH PIVOT TABLES

1. Select a cell in the column you want to sort by. In this example, we will sort by Last Name.

Excel Intermediate. Click in the name column of our Range of Data. (Do not highlight the column) Click on the Data Tab in the Ribbon

Rows area Values area

MS Office 2016 Excel Pivot Tables - notes

Exploring Microsoft Office Excel 2007

WAAT-PivotTables Accounting Seminar

Working with Microsoft Excel. Touring Excel. Selecting Data. Presented by: Brian Pearson

Excel 101. DJ Wetzel Director of Financial Aid Greenville Technical College

Mathematical Operators for Excel

Pivot Table Project. Objectives. By the end of this lesson, you will be able to:

CHAPTER TWO: SPREADS HEETS WITH EXCEL 1

PivotTables & Charts for Health

Microsoft Excel. for Finance Majors. Microsoft Excel for Finance Majors

Excel Tables & PivotTables

Good Byer Stores Australia Ltd Inventory - Whitegoods department

Excel Advanced

GAZIANTEP UNIVERSITY INFORMATICS SECTION SEMETER

European Computer Driving Licence. Advanced Spreadsheet Software BCS ITQ Level 3. Syllabus Version 2.0

The subject of this chapter is the pivot table, the name given to a special

Looking good! Slicing and dicing to visualize data in Excel Dashboards Michael Winecoff UNC Charlotte J. Murrey Atkins Library

EXCEL ADVANCED Linda Muchow

Excel 2007/2010. Don t be afraid of PivotTables. Prepared by: Tina Purtee Information Technology (818)

Microsoft Office Excel 2013

Excel 2007 New Features Table of Contents

Formatting Spreadsheets in Microsoft Excel

Pivot Tables in Excel Contents. Updated 5/19/2016

Insert Subtotals in Excel and Link Data to a Word Document

Microsoft Excel Pivot Tables & Pivot Table Charts

Introductory Excel Walpole Public Schools. Professional Development Day March 6, 2012

Microsoft Excel 2010 Training. Excel 2010 Basics

Contents. Group 2 Excel Handouts 2010

Microsoft Excel 2010

Excel Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts. 6. You can use a table s sizing handle to add columns or rows to a table.

AGB 260: Agribusiness Data Literacy. Tables

Starting Excel application

Microsoft Excel 2016 LEVEL 3

Excel 2007 Pivot Table Sort Column Headings

Microsoft Office Excel 2010: Intermediate (R2) Course Overview. Course Outline

M i c r o s o f t E x c e l A d v a n c e d. Microsoft Excel 2010 Advanced

Contents. The basics. Filling Cells A cell can contain: Text, Numbers or formulas

Working with Data in Microsoft Excel 2010

SPREADSHEET (Excel 2007)

Excel Module 7: Managing Data Using Tables

Chapter 7 Notes Chapter 7 Level 1

Creating a Spreadsheet by Using Excel

Pivot Tables, Lookup Tables and Scenarios

Excel 2013 PivotTables and PivotCharts

Contents. 1. Managing Seed Plan Spreadsheet

GO! with Microsoft Excel 2016 Comprehensive

STUDENT LEARNING OUTCOMES

File Name: Pivot Table Labs.xlsx

Mathematics LBS 4. Spreadsheet Mathematics: Statistics and Graphing. Finding the Mean, Median, & Mode

File Name: Data File Pivot Tables 3 Hrs.xlsx

Microsoft Excel: More Tips, Tricks & Techniques. Excel 2010 & Excel Cutting Edge Chapter of IAAP

eschoolplus+ Cognos Query Studio Training Guide Version 2.4

DESCRIPTION 1 TO DEFINE A NAME 2. USING RANGE NAMES 2 Functions 4 THE IF FUNCTION 4 THE VLOOKUP FUNCTION 5 THE HLOOKUP FUNCTION 6

USING MICROSOFT EXCEL 2016 Guided Project 4-3

Skittles Excel Project

PHLI Instruction (734) Introduction. Lists.

Advanced Excel Charts : Tables : Pivots

Gloucester County Library System. Excel 2010

Sort, Filter, Pivot Table

Intermediate Microsoft Excel 2010

Create a PivotTable. If you prefer to design the PivotTable yourself, you can create a manual PivotTable.

Creating Automated Dashboard Excel 2013 Contents

INTRODUCTION TO MICROSOFT EXCEL: DATA ENTRY AND FORMULAS

Training for ICDL Spreadsheets Spreadsheets 261

EVALUATION COPY. Unauthorized Reproduction or Distribution Prohibited

2) Excel Basics 5: Power of PivotTables to Create Reports with Various Calculations & Layouts. Page 1 of 21

Sample Chapters. To learn more about this book, visit the detail page at: go.microsoft.com/fwlink/?linkid= Copyright 2010 by Curtis Frye

Streamlined Reporting with

Englische Access 2016-Trainingsskripte für IT Seminare und EDV Schulungen als Word-Dokument zum Ausdrucken und fürs Intranet

Microsoft Office Illustrated. Using Tables

Section 2. Advanced Cell Formatting

Basic Microsoft Excel 2011

Query Studio Training Guide Cognos 8 February 2010 DRAFT. Arkansas Public School Computer Network 101 East Capitol, Suite 101 Little Rock, AR 72201

Excel 2007 Pivot Table Include New Items Manual Filter

Section 18. Advanced Cell Formatting

Freestyle Reports DW DIG Crosstabs, Hotspots and Exporting

Microsoft Excel 2010 Tutorial

SUM, AVERAGE, MEDIAN, MIN,

HOW TO USE THIS BOOK... V 1 GETTING STARTED... 2

M i c r o s o f t E x c e l A d v a n c e d P a r t 3-4. Microsoft Excel Advanced 3-4

Chapter-2 Digital Data Analysis

Transcription:

Unit 5: Visualization of Data M5-4: Organizing Many Categorical Variables Outline: Introduction Learning Objectives Contents Definitions Creating a Pivot Table Creating a PivotTable in Excel 2013 Working with PivotTable Exercises/Self-Test 1

Introduction: Learning Objectives The purpose of this module is to help students learn in a clear, concise, and easy way what is the multidimensional contingency table, why it is used, and how and where to apply it. 2

Definition: Categorical Variable Categorical Variable : In statistics, a categorical variable is a variable that can take on one of a limited, and usually fixed, number of possible values. In computer science and some branches of mathematics, categorical variables are referred to as enumerations or enumerated types. Categorical data is the statistical data type consisting of categorical variables or of data that has been converted into that form, for example as grouped data. More specifically, categorical data may derive from either or both of observations made of qualitative data, where the observations are summarized as counts or cross tabulations, or of quantitative data, where observations might be directly observed counts of events happening or they might counts of values that occur within given intervals. Often, purely categorical data are summarized in the form of a contingency table. Source: Basic Business Statistics Concepts and Applications, 13rd Edition, Berenson/Levine/Szabat 1

Definition: Power Pivot Power Pivot is an Excel 2013 add-in you can use to perform powerful data analysis and create sophisticated data models. With Power Pivot, you can mash up large volumes of data from various sources, perform information analysis rapidly, and share insights easily. In both Excel and in Power Pivot, you can create a Data Model, a collection of tables with relationships. The data model you see in a workbook in Excel is the same data model you see in the Power Pivot window. Any data you import into Excel is available in Power Pivot, and vice versa. Reference: http://office.microsoft.com/en-us/excel-help/power-pivot- powerful-data-analysis-and-data-modeling-in-excel- HA102837110.aspx?CTT=5&origin=HA104103581 2

Definition: Pivot Table Pivot Table: In data processing, a pivot table is a data summarization tool found in data visualization programs such as spreadsheets or business intelligence software. Among other functions, a pivot-table can automatically sort, count total or give the average of the data stored in one table or spreadsheet. It displays the results in a second table (called a "pivot table") showing the summarized data. Pivot tables are also useful for quickly creating unweighted cross tabulations. The user sets up and changes the summary's structure by dragging and dropping fields graphically. This "rotation" or pivoting of the summary table gives the concept its name. Source: Basic Business Statistics Concepts and Applications, 13rd Edition, Berenson/Levine/Szabat 3

Characteristics of a PivotTable in Excel 2013: Creating a PivotTable in Excel 2013 A PivotTable allows you to summarize, analyze, and explore large amounts of data Data can be dynamically arranged to view it from different angles One column must have duplicate values to create categories for organizing and summarizing data Another column must have numeric values One can create a PivotTable by clicking PivotTable in the Tables group on the Insert tab Working with PivotTable, An Example: 1. Introduction 2. Create a PivotTable 3. Create a Calculated Field 4. Modify a PivotTable 5. Change Values Field 6. Sort, Filter, and Slice a PivotTable 7. Format a PivotTable 4

1. An Introduction Estimates Production Costs per Products [$ per pint] # Products Production Costs (Variable Costs), per pint Notes Materials Labor Others Ingredients (*) CO2 + H2O 1 Pilsner All-Malt Beer $0.35 $0.02 - $0.05 $0.15 - $0.25 $0.22 - $0.35 (**); (****) 2 Bavarian Lager All-Malt Beer $0.35 $0.02 - $0.05 $0.15 - $0.25 $0.22 - $0.35 (**); (****) 3 Light Wheat Beer $0.33 $0.02 - $0.05 $0.15 - $0.25 $0.22 - $0.35 (***); (****) 4 Red Wheat Beer $0.33 $0.02 - $0.05 $0.15 - $0.25 $0.22 - $0.35 (***); (****) 5 Pale Ale Beer $0.33 $0.02 - $0.05 $0.15 - $0.25 $0.22 - $0.35 (***); (****) 6 Nut Brown Ale $0.33 $0.02 - $0.05 $0.15 - $0.25 $0.22 - $0.35 (****) 7 Bock Dark Beer $0.33 $0.02 - $0.05 $0.15 - $0.25 $0.22 - $0.35 (***); (****) 8 Stout Beer $0.33 $0.02 - $0.05 $0.15 - $0.25 $0.22 - $0.35 (****) 9 Selection of 17 more products $0.33-$0.35 $0.02 - $0.05 $0.15 - $0.25 $0.22 - $0.35 (****) This example is used in the graduate course BU MET AD715 Quantitative & Qualitative Decision Making, and is part of the Business Running Case Investing in New BrewPub? Zlatev, 2013-2014 Notes: (*) The cost per product is based on the price of a delivered, complete set of ingredients (one supply batch kit is required for the production of one 155 gallon tank of beer) (**) Products recommended for both direct sales in the existing restaurant/tavern AND as draught beer tapped in kegs (wholesale) (***) Products recommended for direct sales in the existing restaurant/tavern (****) Cost per products for CO2, H2O, Labor, and Others varies for different locations 5

2. Create a PivotTable Data Preparation Dataset of the Example: Product ID Distribution Name Materials Labor Others Overall Prices Quantity BR01-01, [retail] Pilsner 0.38 0.20 0.26 $0.84 $5.00 1000 BR01-02, [retail] Bavarian Lager 0.38 0.20 0.26 $0.84 $5.00 800 BR01-03, [retail] Light Wheat 0.38 0.20 0.26 $0.84 $3.50 500 BR01-04, [retail] Red Wheat 0.38 0.20 0.26 $0.84 $3.50 600 BR01-05, [retail] Pale Ale 0.38 0.20 0.26 $0.84 $3.50 400 BR01-06, [retail] Bock Dark 0.38 0.20 0.26 $0.84 $3.50 600 BR01-07, [wholesale] Pilsner 0.38 0.20 0.26 $0.84 $1.25 1200 BR01-08, [wholesale] Bavarian Lager 0.38 0.20 0.26 $0.84 $1.28 1500 BR01-10, [retail] Nut Brown Ale 0.38 0.20 0.26 $0.84 $4.00 900 BR01-11, [retail] Special Offer 0.38 0.20 $0.26 $0.84 $2.50 700 6

2. Create a PivotTable Choose the data and click on PivotTable under Insert menu 7

3. Create a Calculated Field Introduction to Calculated Field Calculated field: I. Is a user-defined field II. Does not exist in the original dataset Use basic arithmetic operations, but not cell references or range names Use built-in calculations 8

3. Create a Calculated Field Insert Calculated Field under Field, Items, & Sets which is listed under Analyze menu Create Overall Cost =Overall*Quantity; Overall Contribution =Overall*Prices. 9

4. Modify a PivotTable Modify a PivotTable Add, remove, or rearrange fields to get a different perspective of the data Be careful not to make the data overwhelming with too many details Excel does not automatically update PivotTables 10

5. Change Values Field Change the Values Field Select the function used to calculate summary statistics Default is: o Sum for values o Count for text fields Specify a custom column heading Apply number formatting 11

5. Change Values Field Edit PivotTable Field by checking the following fields: Product ID Filters Distribution Rows Name Columns Quantity Values Overall Contribution Values Overall Cost Values 12

6. Sort, Filter, and Slice a PivotTable Sort data in a PivotTable Default is alphabetical by row label text To quickly rearrange data click in a cell in the column you want to sort, and then click Sort Smallest to Largest (Sort A to Z for text) or Sort Largest to Smallest (Sort Z to A for text) in the Sort & Filter group on the Options tab For specialized sorting click Sort in the Sort & Filter group on the Options tab If you click in a row label or column label first, you get a dialog box that has slightly different options than if you click on a value first 13

6. Sort, Filter, and Slice a PivotTable Apply filters to show a subset of data in a PivotTable Two types of filters: A report filter sets the overall conditions for aggregating data A group filter filters out data based on a row or column category Filter by one or multiple items, as well as by entering a search condition 14

6. Sort, Filter, and Slice a PivotTable Use slicers to filter data in a PivotTable Slicers: Are graphical Provide buttons that you can click for quick filtering Indicate the current filtering state To insert slicer click the Options tab, click the Insert Slicer button in the Sort & Filter group, click one or more field check boxes for which you want to create a slicer, and then click OK To use slicer o click a button to filter data 15

7. Format a PivotTable Basic formatting applied to PivotTables: Primary row labels formatted in bold Subtotals are bold Use PivotTable Tools Design tab to apply a PivotTable style and control: Font color Fill color Bolding Border lines 16

Get the Result Starting Table Product ID Distribution Name Materials Labor Others Overall Prices Quantity BR01-01, [retail] Pilsner 0.38 0.20 0.26 $0.84 $5.00 1000 BR01-02, [retail] Bavarian Lager 0.38 0.20 0.26 $0.84 $5.00 800 BR01-03, [retail] Light Wheat 0.38 0.20 0.26 $0.84 $3.50 500 BR01-04, [retail] Red Wheat 0.38 0.20 0.26 $0.84 $3.50 600 BR01-05, [retail] Pale Ale 0.38 0.20 0.26 $0.84 $3.50 400 BR01-06, [retail] Bock Dark 0.38 0.20 0.26 $0.84 $3.50 600 BR01-07, [wholesale] Pilsner 0.38 0.20 0.26 $0.84 $1.25 1200 BR01-08, [wholesale] Bavarian Lager 0.38 0.20 0.26 $0.84 $1.28 1500 BR01-10, [retail] Nut Brown Ale 0.38 0.20 0.26 $0.84 $4.00 900 BR01-11, [retail] Special Offer 0.38 0.20 $0.26 $0.84 $2.50 700 Final Table 17