Skip to content
bechi.dev
← All projects

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 new customer_id for 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 orders as a score. The comment text and the geolocation table were left out.
  • Delivery columns on orders: delivery_time, days_vs_estimate (positive means late) and is_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.

Power BI model view showing a star schema with order_items as the fact table connected to orders, products, sellers, customers, payments and a Date table.
Fig. 1 — Data model: order_items in the center, dimensions for orders, products, sellers and customers, a marked Date table and a separate table for the measures.
  • Date is marked as the date table. Its relationship to the purchase date is active; the ones to the other order dates are inactive and used with USERELATIONSHIP.
  • Product and seller filters do not reach orders on their own. Instead of a bidirectional relationship, which would make the whole model ambiguous, only the review measure opens the filter, with CROSSFILTER.
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

Power BI executive summary page with KPI cards for revenue $7.22M, 53K orders, AOV 137, repeat rate 2.06%, average review 4.14 and 8% late, a revenue versus previous year line chart and a bar chart of reviews by delivery status.
Fig. 2 — Executive summary, Jan–Aug 2018: the six KPIs, monthly revenue against the previous year, and review score by delivery status.
RevenueOrdersAOVAvg reviewLateRepeat customers
$7.22M53K$1374.14 / 58%3.3% (all time)
Power BI sales and products page with revenue by month, top product categories and revenue by customer state.
Fig. 3 — Sales and products: revenue by month, by category and by state. São Paulo alone is about 40% of revenue.
Power BI delivery page: average review 4.3 on time versus 2.3 late, late percentage by state led by AL at about 22%, and average review falling from 4.3 for early orders to 1.7 for orders more than 7 days late.
Fig. 4 — Delivery and satisfaction: the longer the delay, the lower the score. Late rates are highest in the Northeast.
Power BI customers and sellers page with a donut of one-time versus repeat customers, new versus returning customers by month, and a Pareto chart of seller revenue.
Fig. 5 — Customers and sellers: new against returning customers per month, and the Pareto curve of revenue by seller.

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.