Save your first model
A model records which table to use, which column is the date and how each number is calculated. Every other page uses it, so the same question gives the same number each time.
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
Save an analytics model named shop_orders from my table samples.shop_orders, keeping all columns. The date column is order_date. Measures: revenue is the sum of amount; units is the sum of units; orders is the count of order_id; buyers is the number of different customer_id; average_order is revenue divided by orders. Set a monthly revenue target of 7000 and mark revenue as the certified measure.
Add two checks to shop_orders: revenue is never below 0, and order_id has no duplicates. Also save a question named monthly_by_region that compares revenue by region.
Show me what the measures in shop_orders mean.
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.
- Five measures: revenue, units, orders, buyers and average_order.
- revenue has a monthly target of 7,000 and is marked certified.
- buyers and average_order are listed as not adding up, so you will not see totals or shares for them.
How to read the answer
Check each formula is what you mean before you rely on it.
Good to know
If a save is refused, the message says which part to change.