MIS0855: Data Science In-Class Exercise: Working with Pivot Tables in Tableau

Similar documents
DATA SCIENCE SUMMER UNI VIENNA

Background Information. Project Instructions. Problem Statement. EXAM REVIEW PROJECT Microsoft Excel Review Baseball Hall of Fame Problem

Excel 2013 Pivot Table Calculated Field Greyed Out

Microsoft Windows Software Manual for FITstep Stream Version 4

FireWorks NFIRS BI User Manual

In my left hand I hold 15 Argentine pesos. In my right, I hold 100 Chilean

Fastball Baseball Manager 2.5 for Joomla 2.5x

Multi Class Event Results Calculator User Guide Updated Nov Resource

User Guide. Version Mindjet

UK Car Accidents Data Manipulation

3. EXCEL FORMULAS & TABLES

Investigating Natural Gas Production and Consumption with Web GIS

HOW TO SETUP ROUND ROBIN IN DARTS FOR WINDOWS

3. EXCEL FORMULAS & TABLES

Golf Genius Software

3. Select a colour and then use the Rectangle drawing tool to draw a rectangle like the one below.

USA Jump Rope Tournament Software User Guide 2014 Edition

Sailwave Scoring Instructions for Thursday Night Races 2017

Working with Marker Maps Tutorial

BIOL 101L: Principles of Biology Laboratory

BEFORE YOU OPEN ANY FILES:

IRB Staff Administration Guide

Mac Software Manual for FITstep Pro Version 2

Version 3.1.0: New Features/Improvements: Improved Bluetooth connection on Windows 10

APBA Baseball for Windows 5.75 Update 22

East Bay Swim League. Training Guide and Reporting Manual. For EBSL Team Computer Directors Version 1.2

The Dream Team An Office Simulation for the Sports Minded Student 2 nd Quarter

Full-Time People and Registrations Version 5.0

Managing Timecard Exceptions

Navigate to the golf data folder and make it your working directory. Load the data by typing

INSTRUCTION FOR FILLING OUT THE JUDGES SPREADSHEET

Horse Farm Management s Report Writer. User Guide Version 1.1.xx

Combination Analysis Tutorial

Previous Release Notes

McKnight Hockey Association

GLOBE Data Explorations

Dance Team Tabulation Program Instruction Manual For use with a MAC Revision 2, 11/2017

Allocation of referees, hours and pistes User manual of Engarde - August, 2013

ClubHub. User s Guide

NCSS Statistical Software

Overview. Learning Goals. Prior Knowledge. UWHS Climate Science. Grade Level Time Required Part I 30 minutes Part II 2+ hours Part III

Trial # # of F.T. Made:

Inspection User Manual This application allows you to easily inspect equipment located in Onix Work.

Competition Management

Fruit Fly Exercise 1- Level 1

Inventor Hole Notes: How to Annotate with Drill Numbers Not Diameters Author: David Ponka, Senior Applications Expert Manufacturing

Confidence Interval Notes Calculating Confidence Intervals

Software Manual for FITstep Pro Version 2

Inspection User Manual

FIBA Europe Coaching Website. Manual. Practice Section

TECHNICAL NOTE HOW TO USE LOOPERS. Kalipso_TechDocs_Loopers. Revision: 1.0. Kalipso version: Date: 16/02/2017.

Tension Cracks. Topics Covered. Tension crack boundaries Tension crack depth Query slice data Thrust line Sensitivity analysis.

UNDERGROUND SURVEY WITH MINEMODELLER

INSTRUCTIONS FOR USING HMS 2016 Scoring (v1)

RUNNING MEET MANAGER IN SUPPORT OF MEETS (2016) Greg Wright(6/3/16) First, YOU DO NOT NEED TO DO THIS UNLESS YOU ARE THE HOME TEAM

Club s Homepage Use this feature to return the club s website.

How to run a club night

Dance Team Tabulation Program. Instruction Manual For use with a MAC

Healthcare Analytics Anticoagulation Time in Therapeutic Range Calculation Documentation September 4, 2015

NVSL Divisional Relay Carnival procedures using Hy-Tek

Computer Scorekeeping Procedures Updated: 6/10/2015

Arizona Interscholastic Association and Wanamaker Corporation. Golf Coaches Guide Season

Complete Wristband System Tutorial PITCHING

Full-Time Results and Respect Version 5.0

CONTENTS... 2 CONFIGURATION... 3 VENUE MANAGEMENT SETTING UP COMPETITIONS TEAM MANAGEMENT FIXTURING PUBLICATION...

Golfshot : Golf GPS Android User Guide

UCR AUDIT PROCESS: Downloading and Saving the UCR Audit Report: 1. Log-in to UCR Website at: 2. Select Reports feature

The Coach then sorts the 25 players into separate teams and positions

Users Guide. Copyright 2018 Whitaker Software Applications

1. First start a new scratch project and remove the default sprite.

Overview 1. Handicap Overview 12. Types of Handicapping...12 The Handicap Cycle...12 Calculating handicaps...13 Handicap Nomenclature...

Objective Determine how the speed of a runner depends on the distance of the race, and predict what the record would be for 2750 m.

Air Ball! LabQuest Vernier Gas Pressure Sensor Vernier Motion Detector basketball stopper with needle, stopper stem and tubing attached meter stick

There are 3 sections to the home page shown in the first screenshot below. These are:

MTB 02 Intermediate Minitab

Competition Management Online User Guide for Basketball

Internet Technology Fundamentals. To use a passing score at the percentiles listed below:

The ICC Duckworth-Lewis-Stern calculator. DLS Edition 2016

Club s Homepage Welcome Club Calendar Logout Add a Request Play Date Requested Time Hole Selection # of Tee Times Break Link

Alice in Wonderland Tea Party Coding Animation

The following steps take you through creating a hytek database for a new season May 1 st to April 30 th.

DakStats Football Quick Start Guide 1 of 7

TEAM MANAGER LITE ENTRY INSTRUCTIONS

Student Exploration: Estimating Population Size

Sesam HydroD Tutorial

USER MANUAL April 2016

SHIMADZU LC-10/20 PUMP

Wanamaker Corporation. Golf Coaches Guide Season

STAT-O-MATIC FOOTBALL

Online League Management lta.tournamentsoftware.com. User Manual. Further support is available online at

Review questions CPSC 203 midterm 2

NETDIVER TUTORIAL. Revision Doc-NDT Dimensional Insight

THE STATCREW SYSTEM For Basketball - What's New Page 1

ScoreKeeper tm. ~ Software for Golf ~ for Microsoft Windows 98 through Windows 7. User's Guide

Downloading/Transferring Golf Courses

Student Outcomes. Lesson Notes. Classwork. Example 1 (6 minutes)

BetTurtle User Guide Part 1. By BetTurtle

Excel Solver Case: Beach Town Lifeguard Scheduling

Division Data Coordinator Tasks

Dive Sheets & Running Events Meet Management Software Tutorial for EZMeet Version 3.1 revised 2/4/2006

Transcription:

MIS0855: Data Science In-Class Exercise: Working with Pivot Tables in Tableau Objective: Work with dimensional data to navigate a data set Learning Outcomes: Summarize a table of data organized along dimensions Create hierarchies to enable drill-up/drill-down capability Select the correct dimensions and measures to answer a question This exercise takes you through the steps to create pivot-style tables in Tableau. I call them pivot-style tables because Tableau doesn t use that terminology. However, the functionality is very similar to the Pivot Table feature you see in Microsoft Excel and Google Docs. Therefore, most things you will do in this exercise you can also do in those programs. However, in Tabelau it s a little easier to create the tables and a lot easier to turn the tables into charts! You ll be working with data from the site Spreadsheet Sports (http://www.spreadsheetsports.com). The data set contains player statistics from the 2013-2014 NCAA Basketball season. It includes player position, their division and scoring data. You ll find a Data Dictionary tab that explains each field. Part 1: Download the spreadsheet and open it in Tableau 1) Go to the Community Site post for this exercise. 2) Right-click on the link NCAA 2013-2014 Player Stats.xlsx. Save the file to your computer. 3) Open the spreadsheet in Excel and take a quick look through it. Spend a couple minutes looking at the Data Dictionary. 4) Start Tableau, click Connect to Data and then Microsoft Excel. 5) Open the player statistics file. Page 1

6) Drag the NCAA 2013-2014 Player Data sheet to the blank workspace area and click Go to Worksheet. Part 2: Analyze Aggregate Player Statistics by School 1) Drag the School dimension to the Rows shelf. 2) Drag 2p/G, 3p/G, and Ft/G to the Columns shelf. The chart may change to a bar chart. If it does, change it back to a Text table by clicking that icon in the Show Me area. Page 2

3) Change the measure value calculations from SUM to AVG by right-clicking on each one and selecting Measure/Average. You re now looking at the average player per-game scoring statistics, organized by school. For example, each player at Abeline Christian scores an average of 1.577 2-point shots per game and 0.763 3-point shots per game. This makes sense 3-point shots are more difficult to make, so you d expect there to be less of them. 4) We want to know which school has the best 3-point shot scoring average among its players. To do this, we can sort the table. Click on School in the Rows shelf and select Sort 5) Choose Descending for Sort order, Field for Sort by, and the select the 3p/G field and Average for aggregation. Click OK. 6) You now see an icon indicating that this column is sorted in descending order, and that Iona s players score, on average, 1.004 3-point shots per game. 7) Return to the sort dialog and choose Ascending and then click OK. It now sorts the data in ascending order, revealing that Lamar has the worst 3-point shot scoring record, with its players averaging 0.325 3-points shots per game. This basically means that only one-third of its players make a 3-point shot each game. Page 3

8) To return the table to its original arrangement (alphabetically by school name), click the School field under the Rows shelf and select Clear sort. Part 3: Introduce a second dimension to find the best players We now know which teams players have the highest average per-game shot records, but we can t differentiate between the best and worst players on those teams. So let s do that. 1) Drag the Player dimension to the Rows shelf and place it to the right of School. 2) It will give you a warning that there are a lot of players that you re adding: 3) That s ok. Click Add all members. 4) You ll now see the data organized in two levels, by School first, and then by Player: Page 4

5) Now if we sort the Avg. 3p/G column, it will sort Players scores within each school from highest to lowest. 6) Let s take a look at our best and worst 3-point shot schools Iona and Lamar. Click on School in the Rows shelf and select Filter 7) Click None to clear all the schools and the select Iona and Lamar. Then click OK to apply the filter. You ll see this: 8) You can see that the top 3-point scorer at Iona (Sean Armand) averages twice as many 3- point shots per game as Lamar s top player (Nimrod Hillard). And Iona has two players who haven t scored a 3-point shot this year, while four Lamar players with that distinction. Page 5

9) Remember, Tableau still allows you switch easily between visualizations. Try clicking the horizontal bar chart in the Show Me area. You ll see this. 10) But we want to stick with text tables, so switch the view back. 11) Now delete School from the Filters area (NOT THE ROWS SHELF) to see all the data again. Page 6

Part 4: Create a hierarchy to enable drilling up (and down) We still have a problem with our table we lost our school-level averages. We can only see player-level statistics, even though they are organized by school. We can solve this problem by creating a hierarchy. 1) Under dimensions, drag Player over School 2) You ll see a Create Hierarchy dialog. Click OK. 3) It now groups School and Player together into a single structure, where players are part of schools: The new hierarchy organizes the data by School first, and then by Player. Page 7

4) Now remove School and Player from the Rows shelf and replace it with the School, Player hierarchy. You ll see this: 5) Now click the plus sign next to School. This expands the data to the next level of the hierarchy, allowing you to drill down to see more detail. Page 8

6) Click the minus sign next to School and it will drill back up to the higher level. 7) Now let s add a third level to the hierarchy. Drag the Conf dimension to the School, Player hierarchy. Make sure it is placed above School. We did this because players are part of schools, and schools are part of conferences. 8) Rename the hierarchy by right-clicking on it and selecting Rename Then change the name to Conf, School, Player and click OK. 9) Remove School and Player from the Rows shelf and replace it with the Conf, School, Player hierarchy. You ll now be able to see averages at the conference level: Page 9

or drill down to the player level: Part 5: More with hierarchies We can still work with the dimensions individually even though they are part of the hierarchy. Let s say we wanted to know who had the best free throw percentage in each conference (NOT in each school). First, we need to create a calculated field for free throw percentage. The formula is simple: Free Throw Percentage = Free throws made Free throws attempted 1) Select the Analysis menu, and then Create Calculated Field 2) Name the Calculated Field Free Throw Percentage 3) For the formula, type: [Ft/G]/[Fta/G] NOTE: You can double-click the fields to insert them into the Formula text area. Or just type them. 4) Click OK. Page 10

5) Free Throw Percentage will now appear under Measures. 6) Drag Free Throw Percentage to the Measure Values area (under Marks). 7) Change the calculation from SUM to AVG. You ll see this: and this 8) Now remove School from the Rows shelf and sort the Avg. Fre column. You ll see this: We know that Mike Aaman and Seth Berger led the A-10 conference in free throw success (both made 100% of their attempts). This doesn t mean that they had the highest number of successful free throws, just that their attempts were the most successful. Page 11

Part 6: Try it yourself! Answer the questions below. You should remove measures and dimensions from the Measure Values area and the Columns and Rows shelves so that your workspace isn t too cluttered. Note: This data set indicates players that play multiple positions (i.e., G-F is Guard & Forward). For the purposes of this analysis, you can ignore those. 1) Which team s players averaged the most points per game? 2) What was the average points per game for a Temple player? 3) Do senior (SR) forwards (F) have a higher free throw percentage than freshmen (FR) centers (C)? HINT: Construct a hierarchy using Class and Pos. 4) Do players appear to get better at free throws (a higher percentage of their attempts are successful) as they get older? Provide evidence. 5) Are forwards (F), in general, better at free throws than centers (C)? Provide evidence. Analyze the 2013-2014 Temple team: HINT: (apply a filter so you only see Temple data) 1) Which class players (FR, SO, JR, SR) averaged the most 2-point shot attempts per game? How many did they average? 2) Which class players averaged the least 2-point shot attempts per game? How many did they average? 3) Analyze the average minutes per game that players spend by class and determine whether that explains what you found in #1 and #2. Page 12