Skip to main content
October challenge board

Dirty Data Lab™ · Challenge 06

Medium-Hard
Monday, October 19 · 20–25 minutes

Order Export Maze

The same order can have multiple lines, so order_id alone is not a duplicate key. You need the right composite key before the math works.

The assignment

Cleanup rules

There is one finished state. Use the rules to get the board there.

  1. Normalize order_id, line_id and SKU; use lowercase SKUs.
  2. Normalize dates to YYYY-MM-DD.
  3. Convert qty to whole numbers, unit_price to decimals, and discount_pct to whole-number percentages.
  4. Remove duplicates using the composite key order_id + line_id.
  5. Keep the seven original columns and sort by order_id then line_id.
  6. Calculate net revenue as qty × unit_price × (1 - discount_pct / 100).
Loading the puzzle board…

Loading your Lab profile…

Pass the puzzle

Send this one to a friend.

The friend link carries Dirty Data Lab™ referral attribution, so referred signups can be measured separately from newsletter and ad traffic.

Email a friend
Take the habit into Google Sheets

Practice here. Preflight real sheets with CTS Guard.

Clean That Sheet Guard checks the active Google Sheet for duplicates, missing data, formatting issues and other handoff problems before you share or import it.

Get CTS Guard