Procurement & Sourcing Analytics · Mission 12 of 30Medium

PO cycle time

AVG of date diff with multiple stages

The Brief

Dario SinghSourcing Managerprocurement-ops

Average req-to-PO cycle time and PO-to-GR cycle time across closed POs. Two columns.

You'll practice

AVGDate arithmetic

Tables & columns available

fact_purchase_ordersfact15 columns
ColumnTypeKey
po_idINTPK
supplier_idINTFK → dim_suppliers
category_idINTFK → dim_categories
contract_idINTFK → dim_contracts
req_dateTEXT
po_dateTEXT
ack_dateTEXT
asn_dateTEXT
gr_dateTEXT
invoice_dateTEXT
qty_orderedINT
qty_receivedINT
unit_priceREAL
contracted_priceREAL
statusTEXT

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

Two-stage cycle time: each stage is the gap between two dates, averaged across closed POs.

Hint 2

Compute the gap between two date columns and average it — repeat per stage of the cycle.

Hint 3

WHERE status = 'CLOSED'.