Skip to content

Write metric definitions that two departments can use

Sales says it closed twelve orders this week. Operations sees nine. Both numbers can be right if Sales counts signed orders and Operations counts orders accepted for fulfilment. The definitions are two events that happen on different days.

One order can contribute to several metrics

  • Signed
  • Accepted
  • Shipped
  • Orders signed
  • Orders accepted
  • Orders shipped

Signed, Accepted, Shipped → Order ID and event times → Orders signed, Orders accepted, Orders shipped

The same ID connects the records. Each metric uses the date of its own event.

Write down the grain

Start by saying what one counted item represents. An order report may count one order once. A fulfilment report may count each shipment. Splitting a single order into three deliveries should move the shipment count by three and the order count by one.

Record the source event, the event date used for grouping and the cases to exclude. A definition such as “one accepted order per order ID, grouped by the fulfilment acceptance time, excluding test orders” gives engineers and reviewers enough to examine the same records.

Decide how corrections work

In an illustrative example, Sales signs an order on Friday. A buyer changes the quantities on Monday, and Operations accepts it on Tuesday. Keep the Friday signature for Sales and count the Tuesday acceptance for Operations. Write down what happens when an order is cancelled after acceptance. A weekly tally can show what was accepted at that time, with cancellations as a separate event.

If a business decision needs a historical figure revised after late corrections, label the revision and choose who can make it. Make drill-downs use the same calculation as the headline figure.

Give the definition an owner

Pick someone who can settle questions about exceptional records. Keep a few example rows beside the definition and run them when the calculation changes. A reusable definition should tell a new colleague which records were counted, which day they belong to and who can explain a change.

More articles.

  1. Build a reporting data model that avoids double counting

    Keep order, shipment and invoice records at the right level of detail so one real-world event contributes the right amount.

  2. Compare actuals with the forecast you made at the time

    Keep forecast snapshots and comparable actuals so reviews can distinguish a late event from a change to the original plan.

  3. Show how fresh a report is and handle late records

    Keep event time and processing time separate, show missing feeds and decide how corrections enter past reports.

All articles

Want a second opinion on your project?

Book a call and we’ll talk through your options.

JurajCEO, QikBuild

You leave the call with

  • What we would build first
  • A rough price range
  • Whether custom software makes sense for you
Book a 30-minute call

Or write to hello@qikbuild.com