Procurement & Sourcing Analytics · Mission 10 of 30Easy

ATF detection

Detect approved-to-fund anomaly with date comparison

The Brief

AuditInternal Auditprocurement-audit

Approved-to-fund (ATF) means an invoice predates the PO — a control failure. Find every PO where invoice_date < po_date.

You'll practice

WHERE

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

An invoice that predates its PO is a control failure — find rows where the chronology is reversed.

Hint 2

Project po_id, supplier_id, po_date, invoice_date.

Hint 3

Order by po_date.