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
What were the top 3 products by revenue last month in shop_orders?
Which region sells the least overall?
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.
- Coffee beans leads with 2,565, a 39.2% share.
- The other three products together are 1,884.
- West is lowest overall at 21,260.
What you need
The shop_orders model.
How to read the answer
Shares appear only for numbers that add up.
Good to know
Naming a month limits the ranking to that month.