Get started • Analytics

Pivot tables

Cross two things, such as region and category, in one table.

Sample data

Made-up data. If you have not loaded it yet, ask your assistant:

  • Load https://gotsimplified.com/samples/shop_orders.csv into my data lake as samples.shop_orders, replacing it if it already exists.

Download: shop_orders.csv

Try this

  • Make a pivot of last month's revenue in shop_orders: region down, category across.

Your assistant may word its answers differently each time; the numbers come from your tables.

What you should see

With the sample data. Use these to check the answer.

  • North sells 1,176 of Gear.
  • The grand total is 6,546.

What you need

The shop_orders model.

How to read the answer

The All row and column are totals.

Good to know

Give three columns to get subtotals by the first one.