Short answer: order cycle time = delivery date - order date, per order. Split it into stages (order to approval, approval to picked, picked to shipped, shipped to delivered) to see where time goes. Report the median and the 90th percentile, not just the average: customers remember the slow orders, and a few very late ones distort the mean. Use business days (NETWORKDAYS) when warehouses do not work weekends.
"We ship in 2 days on average" is the number in the sales deck. "One order in ten takes more than 6 days" is the number customers feel.
How do the stages add up?
- Order to approved
- Approved to picked
- Picked to shipped
- Shipped to delivered
Linz loses time in picking; Graz in transit, a carrier question. One total per warehouse would not say which.
| Warehouse | Orders | Average | Median | 90th percentile |
|---|---|---|---|---|
| Vienna | 4,200 | 2.7 | 2.5 | 4.0 |
| Linz | 2,100 | 3.9 | 3.7 | 6.5 |
| Graz | 1,600 | 3.9 | 3.7 | 7.2 |
What is the DAX?
An Orders table with timestamps per stage: Ordered At, Approved At, Picked At, Shipped At, Delivered At.
-- calculated columns on Orders (days, with fractions)
Cycle Days = Orders[Delivered At] - Orders[Ordered At]
Pick Days = Orders[Picked At] - Orders[Approved At]
-- business days, excluding weekends and the holidays table
Cycle Business Days =
NETWORKDAYS ( Orders[Ordered At], Orders[Delivered At], 1, Holidays )
-- measures
Avg Cycle Days = AVERAGE ( Orders[Cycle Days] )
Median Cycle Days = MEDIAN ( Orders[Cycle Days] )
P90 Cycle Days = PERCENTILE.INC ( Orders[Cycle Days], 0.9 )
Orders Over 5 Days % =
DIVIDE ( CALCULATE ( COUNTROWS ( Orders ), Orders[Cycle Days] > 5 ), COUNTROWS ( Orders ) )Only delivered orders have a cycle time; filter on NOT ISBLANK ( Orders[Delivered At] ), and track open orders by their age so far separately. NETWORKDAYS takes a weekend code (1 = Saturday and Sunday) and an optional table of holiday dates.
How do you show it over time?
A line chart of the median and the 90th percentile by week shows both the typical order and the tail. A histogram of cycle days shows whether late orders form a second hump (a process problem) or a long tail (one-off delays). See statistical functions for MEDIAN and PERCENTILE.
What goes wrong?
- The average only. Hides the slow tail; add the median and the 90th percentile.
- Open orders left out. The slowest orders are often still open; report their age.
- Timestamps in different time zones. Order times in UTC and delivery times local add hours of error; convert to one zone.
- Calendar against business days. Mixing them between warehouses makes them incomparable.
Where can you check this?
- Microsoft Learn: NETWORKDAYS function (DAX)
- Microsoft Learn: PERCENTILE.INC function (DAX)
- Microsoft Learn: MEDIAN function (DAX)
Where do you start?
Add the stage timestamps to your orders table and show median and 90th percentile days by warehouse, split by stage. OTIF measures the same orders against the promise.