Project Hub

Project · Sales performance dashboard

Showing which sellers and states deliver late, and what it costs in reviews

The problem

Orders, items, sellers and reviews sit in separate exports. A marketplace can't see on one page whether it is growing, who carries revenue, or what late deliveries cost in reviews.

The solution

A five-page Power BI report on a star schema: growth against last year, what sells, the sellers behind revenue, late deliveries by seller and state, and security so each regional manager sees only their sellers.

How it works

  • Load: Orders, items, products, sellers, customers and reviews checked by one Python notebook
  • Clean: Delivered orders only, latest review per order, English category names
  • Model: Semantic: a star with one items-sold fact, four dimensions, one-way filters
  • Measure: 23 DAX measures: growth, late deliveries, reviews, seller share
  • Report: Five pages, each regional manager limited to their sellers

A closer look

Power BI sales overview page: revenue, orders, customers, repeat customers, late deliveries and average review, with revenue by month, by region and by category.
Sales overview.
Power BI page comparing sales with the same days a year earlier, month by month, with the top customer states.
Sales against last year.
Power BI page of revenue by product category, with each category's share, items sold, average review and late rate.
What sells.
Power BI page of sellers: revenue by seller state, late deliveries against reviews for each seller, and a seller table.
Who sells.
Power BI page on how delivery drives reviews: review scores for late and on-time orders, the late rate by month and by state, and delivery time by region.
How delivery drives reviews.
Data flow: one box per step, in run order, from the input files to the report.
The steps, in run order.
's star schema: one fact table of 110,197 order items joined to 32,951 products, 3,095 sellers, 99,441 customers and 1,096 dates; the 23 measures sit in their own table, and five security roles filter sellers by region.
The star schema: one fact table, four dimensions.

The code

WITH sale_orders AS (
    SELECT
        order_id,
        customer_id,
        CAST(purchased_at AS DATE) AS order_date,
        CAST(delivered_at AS DATE) AS delivered_date,
        CAST(estimated_at AS DATE) AS estimated_date
    FROM orders
    WHERE list_contains($sale_statuses, status)
),
sql/checks.sql

The impact

  • Growth against last year: 2018 revenue up 145.1%.
  • Late deliveries by seller and state: 6.8% overall, 21.4% in the worst state.
  • The 297 sellers behind two thirds of revenue, with their delivery and review record.
  • Each regional manager sees only their region.

The result

96,478 orders: late orders scored 2.27 stars against 4.29 on time, and the top 10% of sellers brought 67% of revenue.

Built with

  • Power BI
  • DAX
  • Python
  • Star schema
  • Row-level security