Case 1: a KPI overview in SQL

Every analysis starts with the same questions. How much revenue, how many orders, how many customers, what's the average order value? These numbers are quick to calculate and just as quick to get wrong. In this case you build them so they hold up.

In short: revenue is SUM(amount), average order value is AVG(amount) on the orders table, customers are COUNT(DISTINCT customer_id). Filter out cancellations with WHERE before anything is calculated. For months, group by strftime('%Y-%m', order_date); for channels, start from the customers table with a LEFT JOIN.

The situation

The kitchenware store has just finished its first full year. For next year's plan, management wants three things: the headline numbers for the year, how they moved month by month, and a comparison of the channels customers signed up through. Until now someone pieced this together from a spreadsheet export every month. From now on it should be a query anyone on the team can rerun.

The data

You need two tables here. orders has one row per order with customer_id, order_date, status and amount, the net order value. customers includes the channel each customer signed up through. Before adding anything up, look at the status column:

SELECT status, COUNT(*) AS orders, ROUND(SUM(amount), 2) AS amount
FROM orders
GROUP BY status
ORDER BY orders DESC;
statusordersamount
delivered11115923.8
cancelled9935.6
shipped2278.3

Nine orders were cancelled and don't belong in revenue. Shipped orders do: they just haven't arrived yet. So throughout the course the filter is WHERE status <> 'cancelled'.

Task 1: the headline numbers

Task Management wants the headline numbers for the year in a single row. Include every order that isn't cancelled and show: orders (count), revenue (sum of amount, rounded to 2 decimals), avg_order_value (average amount per order, rounded to 2 decimals) and customers (number of different customers who ordered).

orders 122 rows, 5 columns
order_idcustomer_idorder_datestatusamount
500122025-11-01cancelled93.9
500242025-11-02delivered238.8
500362025-11-08delivered14.9
500432025-11-10delivered29.9
500572025-11-11delivered44.9
500652025-11-13delivered104.7
5007112025-11-16delivered17.9
5008132025-11-17delivered119
500992025-11-18delivered206.8
5010102025-11-20delivered758
5011122025-11-23delivered44.9
501212025-11-25delivered77.8
501342025-11-27delivered149
501482025-11-28delivered39.9
5015102025-12-15delivered777.9
5016142025-12-16delivered55.8
501722025-12-22delivered34.9
5018162025-12-22delivered79
5019152025-12-29delivered22.9
5020202025-12-29delivered59.8
5021212025-12-30delivered379
5022192025-12-31delivered114.7
5023172026-01-03delivered49.8
5024182026-01-08delivered79
502562026-01-14delivered44.9
5026112026-01-16delivered12.9
502792026-01-17delivered49.9
502822026-01-21delivered59.9
5029222026-01-24delivered49.9
5030242026-01-25delivered498
5031252026-02-04delivered413.9
503252026-02-05delivered34.9
5033282026-02-06cancelled34.9
5034262026-02-11delivered17.9
5035112026-02-20delivered39.9
5036212026-02-23delivered170.9
5037292026-02-25delivered49.9
5038272026-02-26delivered24.9
5039122026-03-03delivered308
5040182026-03-03delivered26.9
5041152026-03-06delivered99.6
504212026-03-07delivered403.8
5043312026-03-11delivered417.7
5044302026-03-12delivered149
5045332026-03-13delivered158
5046342026-03-19delivered189
5047322026-03-27delivered123.8
5048352026-03-30delivered93.9
5049192026-04-01delivered69.8
505022026-04-04cancelled368.9
5051342026-04-06delivered47.8
5052202026-04-16delivered119
505362026-04-22delivered258.7
505422026-04-23cancelled126.7
5055112026-04-24delivered29.9
5056362026-04-26delivered79
5057372026-04-26cancelled12.9
5058392026-04-27delivered117.7
5059382026-04-29delivered19.9
5060222026-04-30delivered59.9
5061992026-05-01delivered63.7
5062402026-05-04delivered158
5063412026-05-05delivered378
5064292026-05-14delivered228.7
5065432026-05-17delivered74.7
5066452026-05-25cancelled39.9
5067442026-05-27delivered69.8
5068462026-05-31delivered80.7
5069272026-06-04delivered97.7
5070312026-06-09delivered68.7
5071182026-06-10delivered189
5072192026-06-11delivered57.7
5073352026-06-13delivered149
5074472026-06-19delivered119
5075492026-06-20delivered39.9
5076482026-06-23delivered49.9
5077422026-06-25delivered19.9
5078512026-06-27delivered34.9
5079392026-07-01delivered59.7
5080502026-07-01delivered25.8
5081452026-07-02delivered188.8
5082192026-07-04delivered134.4
5083532026-07-12delivered83.7
5084522026-07-14delivered77.8
5085382026-07-15delivered129.7
5086542026-07-15delivered418.8
5087462026-07-17delivered59.8
5088292026-07-19delivered188.9
5089362026-07-19delivered124.7
5090452026-07-27delivered14.9
5091412026-07-29delivered19.9
5092582026-08-01delivered99.8
5093562026-08-05delivered74.7
5094532026-08-06delivered98.9
5095592026-08-07delivered22.9
5096182026-08-12delivered1157
5097612026-08-16delivered44.7
5098292026-08-20delivered105.7
5099602026-08-24delivered307
5100392026-08-27delivered103.9
5101442026-08-28delivered243.8
5102312026-08-31delivered128.9
5103542026-08-31delivered298
5104422026-09-01delivered388.9
5105472026-09-01delivered124.7
5106632026-09-06cancelled14.9
5107642026-09-06delivered62.8
5108652026-09-06cancelled208.6
5109622026-09-11delivered34.9
5110272026-09-18delivered29.9
5111422026-09-20delivered104.7
5112412026-09-21delivered24.9
5113462026-09-27delivered94.6
5114662026-09-28delivered29.9
5115672026-10-01delivered34.9
5116512026-10-07delivered69.8
5117532026-10-07cancelled34.9
5118702026-10-09delivered211.9
5119642026-10-16delivered698
5120682026-10-21delivered183.9
5121692026-10-27shipped159.4
5122272026-10-30shipped118.9

Four KPIs, one row, no grouping. Without GROUP BY, the aggregate functions collapse every row left after WHERE into one. Average order value is an average over orders. If you averaged over order_items instead, you'd get the value per line, which is much smaller for orders with several products. For customers, each customer_id counts once, because plenty of customers ordered more than once.

Task 2: KPIs by month

For the monthly series you add a grouping. The month is part of the date: strftime('%Y-%m', order_date) turns 2026-03-14 into the text 2026-03. With the year first, ORDER BY sorts months correctly across the turn of the year too. There's more on dates in the lesson on SQL date functions and more on grouping under GROUP BY.

Task For the monthly report the team needs the headline numbers by month. For all orders that aren't cancelled, show: month (as text YYYY-MM), orders, revenue (sum of amount, 2 decimals) and avg_order_value (average of amount, 2 decimals), sorted by month.

orders 122 rows, 5 columns
order_idcustomer_idorder_datestatusamount
500122025-11-01cancelled93.9
500242025-11-02delivered238.8
500362025-11-08delivered14.9
500432025-11-10delivered29.9
500572025-11-11delivered44.9
500652025-11-13delivered104.7
5007112025-11-16delivered17.9
5008132025-11-17delivered119
500992025-11-18delivered206.8
5010102025-11-20delivered758
5011122025-11-23delivered44.9
501212025-11-25delivered77.8
501342025-11-27delivered149
501482025-11-28delivered39.9
5015102025-12-15delivered777.9
5016142025-12-16delivered55.8
501722025-12-22delivered34.9
5018162025-12-22delivered79
5019152025-12-29delivered22.9
5020202025-12-29delivered59.8
5021212025-12-30delivered379
5022192025-12-31delivered114.7
5023172026-01-03delivered49.8
5024182026-01-08delivered79
502562026-01-14delivered44.9
5026112026-01-16delivered12.9
502792026-01-17delivered49.9
502822026-01-21delivered59.9
5029222026-01-24delivered49.9
5030242026-01-25delivered498
5031252026-02-04delivered413.9
503252026-02-05delivered34.9
5033282026-02-06cancelled34.9
5034262026-02-11delivered17.9
5035112026-02-20delivered39.9
5036212026-02-23delivered170.9
5037292026-02-25delivered49.9
5038272026-02-26delivered24.9
5039122026-03-03delivered308
5040182026-03-03delivered26.9
5041152026-03-06delivered99.6
504212026-03-07delivered403.8
5043312026-03-11delivered417.7
5044302026-03-12delivered149
5045332026-03-13delivered158
5046342026-03-19delivered189
5047322026-03-27delivered123.8
5048352026-03-30delivered93.9
5049192026-04-01delivered69.8
505022026-04-04cancelled368.9
5051342026-04-06delivered47.8
5052202026-04-16delivered119
505362026-04-22delivered258.7
505422026-04-23cancelled126.7
5055112026-04-24delivered29.9
5056362026-04-26delivered79
5057372026-04-26cancelled12.9
5058392026-04-27delivered117.7
5059382026-04-29delivered19.9
5060222026-04-30delivered59.9
5061992026-05-01delivered63.7
5062402026-05-04delivered158
5063412026-05-05delivered378
5064292026-05-14delivered228.7
5065432026-05-17delivered74.7
5066452026-05-25cancelled39.9
5067442026-05-27delivered69.8
5068462026-05-31delivered80.7
5069272026-06-04delivered97.7
5070312026-06-09delivered68.7
5071182026-06-10delivered189
5072192026-06-11delivered57.7
5073352026-06-13delivered149
5074472026-06-19delivered119
5075492026-06-20delivered39.9
5076482026-06-23delivered49.9
5077422026-06-25delivered19.9
5078512026-06-27delivered34.9
5079392026-07-01delivered59.7
5080502026-07-01delivered25.8
5081452026-07-02delivered188.8
5082192026-07-04delivered134.4
5083532026-07-12delivered83.7
5084522026-07-14delivered77.8
5085382026-07-15delivered129.7
5086542026-07-15delivered418.8
5087462026-07-17delivered59.8
5088292026-07-19delivered188.9
5089362026-07-19delivered124.7
5090452026-07-27delivered14.9
5091412026-07-29delivered19.9
5092582026-08-01delivered99.8
5093562026-08-05delivered74.7
5094532026-08-06delivered98.9
5095592026-08-07delivered22.9
5096182026-08-12delivered1157
5097612026-08-16delivered44.7
5098292026-08-20delivered105.7
5099602026-08-24delivered307
5100392026-08-27delivered103.9
5101442026-08-28delivered243.8
5102312026-08-31delivered128.9
5103542026-08-31delivered298
5104422026-09-01delivered388.9
5105472026-09-01delivered124.7
5106632026-09-06cancelled14.9
5107642026-09-06delivered62.8
5108652026-09-06cancelled208.6
5109622026-09-11delivered34.9
5110272026-09-18delivered29.9
5111422026-09-20delivered104.7
5112412026-09-21delivered24.9
5113462026-09-27delivered94.6
5114662026-09-28delivered29.9
5115672026-10-01delivered34.9
5116512026-10-07delivered69.8
5117532026-10-07cancelled34.9
5118702026-10-09delivered211.9
5119642026-10-16delivered698
5120682026-10-21delivered183.9
5121692026-10-27shipped159.4
5122272026-10-30shipped118.9

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

Take a close look at the result. August stands out with over 2,600 in revenue and an average order above 220. Before you report that as a win: a single order can distort a month like this. Whether the number is right is something you'll find out in case 6, data quality.

Task 3: KPIs by signup channel

Now the question is about customers, not orders. "How many customers came through search, and how many of them bought?" needs the customers who never ordered as well. So you start from customers and attach orders with a LEFT JOIN. Customers without an order stay in the result, with NULL in the order columns.

Task Marketing wants to know which signup channel brings the best customers. For each channel in the customers table, show: customers (all registered customers from that channel), buyers (customers from that channel with at least one order that isn't cancelled) and revenue (sum of amount of their non-cancelled orders, 2 decimals). Customers without an order still count under customers.

customers 70 rows, 6 columns
customer_idnameemailcitysignup_datechannel
1Samuel Wardsamuel.ward@example.comAustin2025-10-07Newsletter
2Owen Robinsonowen.robinson@example.comDenver2025-08-02Referral
3Liam Martinliam.martin@example.comChicago2025-09-17Search
4Thomas Hughesthomas.hughes@example.comBristol2025-09-07Search
5Chloe Lewischloe.lewis@example.comBristol2025-09-03Newsletter
6Connor Hallconnor.hall@example.comNew York2025-07-07Referral
7Lily Robinsonlily.robinson@example.comGlasgow2025-07-31Newsletter
8James Thomasjames.thomas@example.comGlasgow2025-07-02Search
9Aisha Greenaisha.green@example.comChicago2025-07-16Newsletter
10Sophia Murphysophia.murphy@example.comBirmingham2025-08-03Search
11Emily Harrisemily.harris@example.comLeeds2025-11-08Search
12Hannah Thomashannah.thomas@example.comNULL2025-11-16Search
13Ethan Hallethan.hall@example.comAustin2025-11-13Search
14Lucas Pricelucas.price@example.comLeeds2025-11-26Newsletter
15Priya Harrispriya.harris@example.comNew York2025-12-05Newsletter
16Lucas Reedlucas.reed@example.comSeattle2025-12-01Search
17Fiona Campbellfiona.campbell@example.comDenver2025-12-11Search
18Ryan Wrightryan.wright@example.comChicago2025-12-14Social media
19Priya Evanspriya.evans@example.comDenver2025-12-26Search
20Grace Campbellgrace.campbell@example.comDenver2025-12-26Search
21Aisha Priceaisha.price@example.comNew York2025-12-30Referral
22Zoe Harriszoe.harris@example.comNew York2026-01-11Newsletter
23Liam Brownliam.brown@example.comManchester2026-01-15Newsletter
24Olivia Taylorolivia.taylor@example.comDenver2026-02-03Search
25Aisha Wilsonaisha.wilson@example.comAustin2026-02-13Search
26Megan Reedmegan.reed@example.comGlasgow2026-01-28Search
27Amelia GreenNULLBristol2026-02-04Search
28Kevin Wilsonkevin.wilson@example.comBirmingham2026-02-06Search
29Isla Morganisla.morgan@example.comLondon2026-02-11Search
30Liam Hallliam.hall@example.comBristol2026-02-22Referral
31Zoe Turnerzoe.turner@example.comBirmingham2026-02-24Search
32Daniel Evansdaniel.evans@example.comChicago2026-03-05Newsletter
33Emily Wrightemily.wright@example.comLondon2026-03-07Search
34Connor Taylorconnor.taylor@example.comSeattle2026-03-11Search
35Olivia Reedolivia.reed@example.comNew York2026-03-24Social media
36Kevin Martinkevin.martin@example.comBirmingham2026-04-01Referral
37Emily Daviesemily.davies@example.comAustin2026-04-09Search
38Ruby Johnsonruby.johnson@example.comNULL2026-04-08Social media
39Henry Campbellhenry.campbell@example.comGlasgow2026-04-10Newsletter
40Ethan Murphyethan.murphy@example.comBristol2026-04-24Newsletter
41Ethan Martinethan.martin@example.comManchester2026-05-01Referral
42Liam Campbellliam.campbell@example.comAustin2026-04-30Search
43Holly Harrisholly.harris@example.comNew York2026-05-10Search
44Aaron Smithaaron.smith@example.comManchester2026-05-13Newsletter
45Aisha Bakeraisha.baker@example.comDenver2026-05-19Social media
46Isla Bennettisla.bennett@example.comGlasgow2026-05-18Social media
47Chloe Davieschloe.davies@example.comLeeds2026-06-05Newsletter
48Thomas Robinsonthomas.robinson@example.comBoston2026-06-03Search
49Marcus Evansmarcus.evans@example.comManchester2026-06-15Newsletter
50Oliver Wrightoliver.wright@example.comBristol2026-06-10Search
51Thomas Johnsonthomas.johnson@example.comGlasgow2026-06-18Search
52Sophia Reedsophia.reed@example.comLondon2026-06-24Search
53Fiona Clarkefiona.clarke@example.comLeeds2026-07-02Referral
54Liam HallLIAM.HALL@EXAMPLE.COMBristol2026-07-08Search
55Lily Thomaslily.thomas@example.comBoston2026-07-14Search
56Chloe Robinsonchloe.robinson@example.comBristol2026-07-26Search
57Hannah Campbellhannah.campbell@example.comBoston2026-07-20Social media
58Ruby Morganruby.morgan@example.comNew York2026-07-29Search
59Sophia Smithsophia.smith@example.comLondon2026-07-31Newsletter
60Ava Martinava.martin@example.comBirmingham2026-08-11Social media
61Jack Halljack.hall@example.comNULL2026-08-13Newsletter
62Grace Coopergrace.cooper@example.comChicago2026-08-25Search
63Connor Priceconnor.price@example.comManchester2026-08-23Search
64Marcus Walkermarcus.walker@example.comBristol2026-09-04Social media
65Holly Brownholly.brown@example.comDenver2026-09-06Search
66Priya EvansPriya.Evans@example.com Denver2026-09-19Search
67Carlos Garciacarlos.garcia@example.comChicago2026-09-19Social media
68Priya Thomaspriya.thomas@example.comBristol2026-09-29Search
69Mia Reedmia.reed@example.comChicago2026-10-02Search
70Marcus Turnermarcus.turner@example.comBoston2026-10-04Newsletter
orders 122 rows, 5 columns
order_idcustomer_idorder_datestatusamount
500122025-11-01cancelled93.9
500242025-11-02delivered238.8
500362025-11-08delivered14.9
500432025-11-10delivered29.9
500572025-11-11delivered44.9
500652025-11-13delivered104.7
5007112025-11-16delivered17.9
5008132025-11-17delivered119
500992025-11-18delivered206.8
5010102025-11-20delivered758
5011122025-11-23delivered44.9
501212025-11-25delivered77.8
501342025-11-27delivered149
501482025-11-28delivered39.9
5015102025-12-15delivered777.9
5016142025-12-16delivered55.8
501722025-12-22delivered34.9
5018162025-12-22delivered79
5019152025-12-29delivered22.9
5020202025-12-29delivered59.8
5021212025-12-30delivered379
5022192025-12-31delivered114.7
5023172026-01-03delivered49.8
5024182026-01-08delivered79
502562026-01-14delivered44.9
5026112026-01-16delivered12.9
502792026-01-17delivered49.9
502822026-01-21delivered59.9
5029222026-01-24delivered49.9
5030242026-01-25delivered498
5031252026-02-04delivered413.9
503252026-02-05delivered34.9
5033282026-02-06cancelled34.9
5034262026-02-11delivered17.9
5035112026-02-20delivered39.9
5036212026-02-23delivered170.9
5037292026-02-25delivered49.9
5038272026-02-26delivered24.9
5039122026-03-03delivered308
5040182026-03-03delivered26.9
5041152026-03-06delivered99.6
504212026-03-07delivered403.8
5043312026-03-11delivered417.7
5044302026-03-12delivered149
5045332026-03-13delivered158
5046342026-03-19delivered189
5047322026-03-27delivered123.8
5048352026-03-30delivered93.9
5049192026-04-01delivered69.8
505022026-04-04cancelled368.9
5051342026-04-06delivered47.8
5052202026-04-16delivered119
505362026-04-22delivered258.7
505422026-04-23cancelled126.7
5055112026-04-24delivered29.9
5056362026-04-26delivered79
5057372026-04-26cancelled12.9
5058392026-04-27delivered117.7
5059382026-04-29delivered19.9
5060222026-04-30delivered59.9
5061992026-05-01delivered63.7
5062402026-05-04delivered158
5063412026-05-05delivered378
5064292026-05-14delivered228.7
5065432026-05-17delivered74.7
5066452026-05-25cancelled39.9
5067442026-05-27delivered69.8
5068462026-05-31delivered80.7
5069272026-06-04delivered97.7
5070312026-06-09delivered68.7
5071182026-06-10delivered189
5072192026-06-11delivered57.7
5073352026-06-13delivered149
5074472026-06-19delivered119
5075492026-06-20delivered39.9
5076482026-06-23delivered49.9
5077422026-06-25delivered19.9
5078512026-06-27delivered34.9
5079392026-07-01delivered59.7
5080502026-07-01delivered25.8
5081452026-07-02delivered188.8
5082192026-07-04delivered134.4
5083532026-07-12delivered83.7
5084522026-07-14delivered77.8
5085382026-07-15delivered129.7
5086542026-07-15delivered418.8
5087462026-07-17delivered59.8
5088292026-07-19delivered188.9
5089362026-07-19delivered124.7
5090452026-07-27delivered14.9
5091412026-07-29delivered19.9
5092582026-08-01delivered99.8
5093562026-08-05delivered74.7
5094532026-08-06delivered98.9
5095592026-08-07delivered22.9
5096182026-08-12delivered1157
5097612026-08-16delivered44.7
5098292026-08-20delivered105.7
5099602026-08-24delivered307
5100392026-08-27delivered103.9
5101442026-08-28delivered243.8
5102312026-08-31delivered128.9
5103542026-08-31delivered298
5104422026-09-01delivered388.9
5105472026-09-01delivered124.7
5106632026-09-06cancelled14.9
5107642026-09-06delivered62.8
5108652026-09-06cancelled208.6
5109622026-09-11delivered34.9
5110272026-09-18delivered29.9
5111422026-09-20delivered104.7
5112412026-09-21delivered24.9
5113462026-09-27delivered94.6
5114662026-09-28delivered29.9
5115672026-10-01delivered34.9
5116512026-10-07delivered69.8
5117532026-10-07cancelled34.9
5118702026-10-09delivered211.9
5119642026-10-16delivered698
5120682026-10-21delivered183.9
5121692026-10-27shipped159.4
5122272026-10-30shipped118.9

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

The tricky part is the status filter. In the ON condition it only decides which orders get attached. In WHERE it checks every finished row, and the rows for customers without orders have a NULL status. NULL <> 'cancelled' isn't true, so those rows are dropped and your LEFT JOIN behaves like an INNER JOIN.

Common mistakes

Counting cancellations

Without WHERE, the columns and row count are right but the values aren't. The exercise says "Columns and row count match, but not every value." Check the cancellation filter first.

COUNT instead of COUNT DISTINCT

COUNT(customer_id) counts every row with a customer_id, which is the number of orders again. For customers you need COUNT(DISTINCT customer_id).

Average order value from the line items

Joining orders to order_items and taking AVG(quantity * unit_price) gives you the value per line. After a join, each order appears once per line item. The exercise then only reports values that don't match, so first check whether you averaged over the line items.

Grouping by month number only

strftime('%m', order_date) lumps November 2025 and November 2026 together. In this data every month appears once, but by the second year the series would be wrong. Always use year and month.

Status filter in WHERE with a LEFT JOIN

In task 3 the number of customers then equals the number of buyers, and the exercise reports values that don't match. Move the condition into ON.

In MySQL, PostgreSQL and SQL Server

SUM, AVG, COUNT(DISTINCT …) and LEFT JOIN are written the same everywhere. The differences are in getting the month out of a date and in division:

DatabaseMonth as text YYYY-MMInteger divided by integer
MySQLDATE_FORMAT(order_date, '%Y-%m')decimal result, 3/5 gives 0.6000
PostgreSQLto_char(order_date, 'YYYY-MM')integer, the fraction is truncated
SQL ServerFORMAT(order_date, 'yyyy-MM')integer, the fraction is truncated
SQLite (these exercises)strftime('%Y-%m', order_date)integer, which is why you multiply by 100.0

Sources: MySQL Reference Manual (Date and Time Functions, Arithmetic Operators), PostgreSQL documentation (Data Type Formatting Functions, Mathematical Functions), Microsoft Learn (FORMAT, Division).

How to check your result

  • Task 1: 113 orders, revenue 16202.1, average order value 143.38, 64 customers.
  • Task 2: the twelve monthly revenues add up to 16202.1 again, and the orders to 113.
  • Task 3: 37 customers came through search and 32 of them bought. Customers across all channels add up to the 70 rows of the customers table.

FAQ

Why is the order value stored on the order when there are line items?

That's common in shop systems: the order header carries the total and the lines carry the detail. For per-order KPIs you use the header; for per-product KPIs you use the lines. That the two agree isn't guaranteed, though, and you'll check it in case 6.

What's the difference between COUNT(*) and COUNT(column)?

COUNT(*) counts rows, COUNT(column) only counts rows where the column isn't NULL. After a LEFT JOIN, that's the difference between "all customers" and "customers with an order".

Should I round?

For display, yes, but only at the very end. If you round intermediate results and keep calculating with them, small differences add up in the totals.

Up next: case 2, order funnel

From the shop's click log you work out how many visitors make it from the product page to a purchase, and where they drop out.

Go to case 2

Back to the course overview.

Write to us

Choose language

Select your preferred language