Top 25 suppliers by spend (last 12 months)
Highest-volume vendors over the trailing 12 months — supports vendor concentration analysis.
Tables used
ap_invoices_all poz_suppliers_v
Bind parameters
None — the statement runs as written; edit the literals in the WHERE clause to narrow it.
How to run it
Paste it into a BI Publisher data model as a SQL data set, or into QueryWell's Query Studio and run it against your pod with a reporting account. Results come back to a grid you can profile, chart and export with a SHA-256 hash.
SELECT
s.vendor_name,
i.invoice_currency_code,
COUNT(*) AS invoice_count,
SUM(i.invoice_amount) AS total_spend
FROM ap_invoices_all i
JOIN poz_suppliers_v s ON s.vendor_id = i.vendor_id
WHERE i.invoice_date >= ADD_MONTHS(TRUNC(SYSDATE), -12)
AND i.cancelled_date IS NULL
GROUP BY s.vendor_name, i.invoice_currency_code
ORDER BY total_spend DESC
FETCH FIRST 25 ROWS ONLY
A single read-only SELECT against Oracle Fusion Cloud's supported reporting surface. Column names and views can differ by release and by the roles your reporting account holds, so validate the result against a report you already trust before relying on it.
apsupplierspend
More Accounts Payable queries
Run it without the template cycle
QueryWell runs this and 81 other curated scripts against your own Fusion pod from one signed desktop app — grid, charts, profiling and hashed exports included. Perpetual licence, 14-day trial.