Skip to content

Create Pivot Tables

Pivot tables are one of the best features of spreadsheets. Let’s use them in Tabmega.


pivot table meme

Adding a pivot table

  1. Assuming you are following along from the Filter section of the tutorial, you should be on the ratings table. It’s fine to keep the filter applied for Toy Story (1995) and Jumanji (1995), or to remove the filter. It won’t affect the pivot. screenshot
  2. Click on the Insert menu at the top of the window, and then Pivot Table. screenshot
  3. You’ll see a new table was created called pivot_1. Ensure that the Source box in the right pivot pane is the ratings table. It should be automatically set to the ratings table if you inserted a pivot while on the ratings table. screenshot
  4. Let’s get the count of ratings by movie title. Click on Add button next to Rows. screenshot
  5. Add movieTitle as a row. It should look like the second screenshot after adding. screenshot screenshot
  6. Click on Add button next to Values. screenshot
  7. Add userId as a Value. It should look like the second screenshot after adding. screenshot screenshot
  8. By default the Summarize By function is SUM because userId is a numeric value. Update the Summarize By dropdown for userId to be COUNTA which counts non-blanks. There aren’t any duplicate or blank rows, so COUNTA will give the same result as COUNTUNIQUE and will be slightly faster. screenshot screenshot
  9. As usual, click Apply for the new pivot table to be calculated. Now we can see the number of users that have rated each movie! screenshot