Which sneaker brand is actually worth reselling?
Lesson 4.3 · There’s a Button for That
Felix · Rosa
Rosa: “You know there’s a button for that, right?”
Felix’s sneaker flips made $640 in total.
He wants to know which brand made it.
He starts filtering to Nike, writing down the sum, clearing, filtering to Vans, writing down the sum.
Rosa watches for a minute and asks if he’s heard of a pivot table.
The short answer
Nike, by a mile: $290 of the $640. Adidas is a solid second. Vans and Converse together made less than one good Nike flip. Felix stops buying Vans.
Try it yourself
Here are Felix’s twenty flips rolled up by brand: one row per brand, profit added up. Find the brand that wins, then tap Got it.
| brand | sum(profit) |
|---|---|
| Nike | 290 |
| Adidas | 175 |
| New Balance | 122 |
| Converse | 27 |
| Vans | 26 |
What you just did has a name
Pivot table
A pivot table groups rows by a category and summarizes a number for each group: total profit per brand, average views per game, count of flips per month.
Group by, then add up. That two-step move is the heart of nearly every report.
A few more things
Group by a category, summarize a number
Brand is the category. Profit is the number. Sum is the summary. Swap any of the three and you get a different table: average profit per month, count of flips per brand.
It’s the same as “views by game”
Ashley’s question from Module 2, average views per game, is a pivot table. Category, number, summary. Once you see the shape, you see it in every dashboard ever made.
The rows don’t go anywhere
The pivot is a summary sitting next to the data. Fix a row in the original and the pivot updates. Felix’s hand-copied numbers would have just been wrong.
Go deeper
The longer version, if you want it.
GROUP BY, the same idea in a database
In SQL the pivot Felix built is: SELECT brand, SUM(profit) FROM flips GROUP BY brand. The pivot table is a point-and-click version of that one line, and every analytics tool has some version of it.
Pivots can group by two categories at once, brand down the side and month across the top, with a total in each cell. That grid is where the name “pivot” comes from: you can rotate which category goes where.
Quick check
A coach has a table of every shot this season: player, quarter, made or missed. She wants how many shots each player made. What’s the pivot?
Let’s take it slower
Here’s a quick test for whether you need a pivot: does your question have the word “per” or “by” in it? Profit per brand. Shots by player. Sales per month. That word means you want one line for each group, with the number squashed down for that group. A pivot is a machine for squashing. Point it at a category, point it at a number, pick sum or average or count, and it hands back one row per group. Long table in, short table out.
More examples
Screen time by app
Your phone logs every session: app, start time, length. The screen time screen is a pivot: group by app, sum the minutes. Thousands of sessions become one bar per app, and one of the bars is embarrassing.
Absences by homeroom
The office has one row per absence: student, date, homeroom. A pivot with homeroom as the group and count as the summary tells the principal which hallway is emptiest on Fridays. Nobody reads the raw rows. They read the pivot.
Back to the question
So which brand is worth Felix’s time?
Show the answer
Nike, by a mile: $290 of the $640. Adidas is a solid second. Vans and Converse together made less than one good Nike flip. Felix stops buying Vans.
One last question
Felix explains pivot tables to Owen. Trust him?
“A pivot table groups rows by a category and adds up a number for each group.”
“You have to retype the numbers into the pivot table by hand.”
“Average views per game is basically a pivot table.”
Talk Card
Talk Card · 4.3
A pivot table groups rows by a category and summarizes a number for each group, like profit per brand. Group, then add up. Almost every report is that move.
Data to AI · pettigrewlab.com/learn

