BI · Done
Where is a marketplace losing money and customers?
A four-page Power BI report on Olist, a Brazilian marketplace with 100K orders. Sales grow fast, but late deliveries cost two review stars and 96.7% of customers never buy again.
- Power BI
- Power Query
- DAX
TL;DR
+141%
Revenue growth, Jan–Aug 2018 versus the same months of 2017. $7.22M from 53K delivered orders.
−2.0 ★
Late orders average 2.3 stars against 4.3 for on-time ones. Delivery is the strongest lever on reviews.
96.7%
Customers who bought only once in the whole history. Growth depends entirely on acquisition.
Context and questions
The project is framed as a freelance job. The client is a mid-size online marketplace, and management says: “Sales are growing, but we don’t know where we’re losing money and customers. We need a dashboard to make decisions.”
The report has to answer five questions:
- How are revenue, orders and average order value trending? Is there seasonality?
- Which product categories and states drive the most revenue, and which underperform?
- How does delivery performance (late versus on time) affect review scores?
- What share of customers buy again?
- Which sellers concentrate the most sales, and is there a dependency risk?
Data
The public Olist Brazilian E-commerce dataset (Kaggle): about 100K orders from 2016 to 2018 across nine related tables.
Before building anything I wrote down the assumptions, because each one changes the numbers:
- Revenue is the item price, without freight. There is no cost data, so there is no margin either.
- Only delivered orders count toward revenue, orders, average order value, reviews and late rate.
- A customer is identified by
customer_unique_id. Olist creates a newcustomer_idfor every order, so counting that one would make every customer look new. - The analysis window is Jan 2017 – Aug 2018. 2016 and Sep–Oct 2018 are partial, and year-over-year compares equal periods (Jan–Aug against Jan–Aug).
Cleaning, all in Power Query:
- Every CSV loaded through a folder parameter, with the
olist_prefix removed from table names. - Product categories translated to English by merging the translation table.
- Duplicated city spellings unified (
são paulo). - Every date column converted to the Date type, including
shipping_limit_date, which arrived as text. The relationships to the calendar need matching types. - Reviews grouped by order and merged into
ordersas a score. The comment text and the geolocation table were left out. - Delivery columns on orders:
delivery_time,days_vs_estimate(positive means late) andis_late, which stays empty for orders that were never delivered.
Approach
A star schema with order_items as the fact table, one row per product within an order.
Dateis marked as the date table. Its relationship to the purchase date is active; the ones to the other order dates are inactive and used withUSERELATIONSHIP.- Product and seller filters do not reach
orderson their own. Instead of a bidirectional relationship, which would make the whole model ambiguous, only the review measure opens the filter, withCROSSFILTER.
Revenue = CALCULATE ( SUM ( order_items[price] ), orders[order_status] = "delivered" )
AOV = DIVIDE ( [Revenue], [Orders Amount] )
Late % = CALCULATE ( AVERAGE ( orders[is_late] ), orders[order_status] = "delivered" )
Avg Review = CALCULATE ( AVERAGE ( orders[review_score] ),
CROSSFILTER ( order_items[order_id], orders[order_id], BOTH ),
orders[order_status] = "delivered" )
Top 10 Sellers Share =
DIVIDE ( SUMX ( TOPN ( 10, ALL ( sellers[seller_id] ), [Revenue] ), [Revenue] ),
CALCULATE ( [Revenue], ALL ( sellers ) ) )
The rest of the measures cover time intelligence (previous year, YoY, MoM, YTD), repeat and new customers, category and seller share, and a cumulative share for the Pareto curve.
The report has four pages, one per group of questions.
Results
| Revenue | Orders | AOV | Avg review | Late | Repeat customers |
|---|---|---|---|---|---|
| $7.22M | 53K | $137 | 4.14 / 5 | 8% | 3.3% (all time) |
Findings and recommendations
1. The business grows fast and steadily. Revenue grew +141% against the same months of 2017, and in 2018 it held at $0.83M–0.98M a month. November 2017 was the highest month in the data, most likely Black Friday. There is only one November, so it is a peak, not yet a proven seasonal pattern. Plan stock, logistics and campaigns ahead of November, and confirm the pattern with the next year.
2. Revenue is concentrated in São Paulo and a few categories. SP brings ~$2.9M, about 40% of revenue, three times RJ or MG. Health and beauty, watches and gifts, and bed and bath lead the categories. The North and Northeast bring little and have the worst delivery. Protect SP with fast delivery; treat the Northeast as growth that first needs better logistics.
3. Late deliveries destroy satisfaction. On-time orders average ~4.3 stars, late ones ~2.3. The score falls with every day of delay: 3.3 at 1–3 days late, 2.0 at 4–7, 1.7 beyond a week. The late rate reaches 22% in AL, 20% in MA and 19% in CE, against an 8% average. Set more realistic delivery estimates for the Northeast, monitor carriers by state, and warn customers before an order arrives late.
4. Almost nobody comes back. 96.7% of customers bought once in their whole history. About 6K new customers arrive each month against 100–200 returning ones. Growth depends on acquisition, which is expensive. Post-purchase emails, a second-purchase coupon and the repeat rate as a core KPI are the first steps, and fixing point 3 should help too.
5. Low dependency on individual sellers. The top 10 sellers hold only 13% of revenue and the largest one 1.9%. Losing a seller is a low risk. Watch the top sellers with weak reviews instead: one of the top 10 averages 3.42 stars and its volume can hurt the marketplace’s reputation.
Limitations
- The data ends in August 2018, so seasonality cannot be confirmed.
- Revenue excludes freight and there is no cost data, so the report says where money comes in, not where margin is lost.
- Reviews are joined per order: an order with several items counts its review once.
- Out of scope: review text, geolocation maps and forecasting.
The full write-up for the client, the data dictionary and the brief are in the repository, and the report pages as a PDF.