Class 4: Pivot Tables

In this class we’ll explore pivot tables in Google Sheets, a flexible data summarization tool.

Slides

Philadelphia Shooting Victims Dataset

A visual guide to pivot tables

Check out the guide here.

In-class exercise 1

Create a new Google sheet with the table below and try to replicate the in-class presentation.

YearFruitCount
2017Apple7
2017Banana5
2018Apple8
2018Banana9
2018Banana6
2019Apple10
2019Apple12
2019Banana11

First, create a pivot table with just a value for sum of Count. Next, add a row grouping by Year. Finally, add a column grouping by Fruit.

Mess around with things a bit. Try dragging Fruit from the column section of the pivot table editor to the row section.