How to calculate Perfect Order Rate

Perfect order rate is the share of orders that arrive on time, complete, undamaged and correctly invoiced.

Formula

Perfect order rate = perfect orders ÷ total orders × 100

SQL query

This example assumes: orders(id, on_time, in_full, damaged, invoice_correct). It is written in PostgreSQL syntax; date functions differ slightly in MySQL, BigQuery and SQLite, and your column names will differ from these.

SELECT COUNT(*) FILTER (WHERE on_time AND in_full AND NOT damaged AND invoice_correct) * 100.0
         / NULLIF(COUNT(*), 0) AS perfect_order_pct
FROM orders;

Common mistakes that make Perfect Order Rate wrong

  • Multiplying component rates assumes they are independent; count orders that pass all tests instead.
  • A NULL flag fails the test silently; handle missing values explicitly.
  • Each criterion needs a written definition or teams will disagree.

Ask for Perfect Order Rate in plain English

Instead of writing the query yourself, you can type the question. SchemaChat turns it into SQL against your connected database or uploaded file, runs it, and shows the SQL and the figures it used so you can check the answer before you share it. It does not replace your judgement about the definition: check that the query matches the formula your business uses.

  • What share of orders were perfect last month?
  • Which criterion fails most often?

Frequently asked questions

What is Perfect Order Rate?
Perfect order rate is the share of orders that arrive on time, complete, undamaged and correctly invoiced.
How do you calculate Perfect Order Rate?
Perfect order rate = perfect orders ÷ total orders × 100. The SQL example on this page shows the same calculation against a simple table.
What commonly goes wrong when calculating Perfect Order Rate?
Multiplying component rates assumes they are independent; count orders that pass all tests instead.