Skip to main content
Quanta Meridian logo

Solution Example collection 01

Reporting Foundations

These projects show three related controls. One builds shared sales, purchasing and stock tables. One reconciles every item in a complete historical purchase event log. One follows a supplier invoice through an Accounts Payable reviewer workflow.

3 Projects · counts and checks read from retained manifests

Native SQL evidenceThe reporting mart shows row counts, reconciled totals and whether the report can be published alongside the SQL build.

Three engineering decisions

Shared reports, complete reconciliation and human review need different records.

The wholesale model aligns customers, products, dates and totals. The BPI build checks every purchase item. The contained workflow preserves the reviewer question, response, rematch and final invoice decision.

Source-to-decision comparison

Three reporting problems need different controls.

01Reporting mart
  1. Source

    Microsoft Wide World Importers sales, purchase and stock records.

  2. Grain

    One posted invoice line, purchase-order line or stock movement in its own fact table.

  3. Rule

    Type and key checks reject invalid rows before shared dimensions align the reporting facts.

  4. Output

    Monthly commercial mart, product margin report and recorded publish or hold outcome.

  5. Reviewer decision

    Release the month or hold it while a named source exception is corrected.

228,265posted invoice lines18 checks passed6-stage trace

02Purchase reconciliation
  1. Source

    BPI Challenge 2019 purchase-order event log and a retained rule configuration.

  2. Grain

    One final reconciliation decision for each purchase-order item.

  3. Rule

    Ordered rules group receipt and invoice events, recognise timing items and retain unresolved differences.

  4. Output

    Reconciliation summary and a payment-hold queue containing 34,679 purchase items.

  5. Reviewer decision

    Clear with a timing note or keep the item on hold with Accounts Payable, the buyer or receiving team.

251,734purchase-order items21 checks passed6-stage trace

03Invoice review
  1. Source

    Wide World Importers purchasing structure with deterministic non-client invoice-review records.

  2. Grain

    One open review case per invoice and one append-only event for each review action.

  3. Rule

    Versioned tolerances compare invoice lines with approved orders and accepted receipts before an independent rematch.

  4. Output

    Native reviewer report covering 2,075 cases and 8,303 retained workflow events.

  5. Reviewer decision

    Send the invoice to the separate authorised payment process, keep it held or return it for correction.

2,075invoice review cases27 checks passed12-stage trace

Desktop aligns the five stages for comparison. On smaller screens, each Project keeps the same complete sequence from records to reviewer decision.
01

Operational table contracts

Included files, fields, owners and expected controls are declared before transformation.

02

Declared grain

The row meaning is declared for every transaction, fact, snapshot and exception table.

03

Staging and marts

File preparation remains separate from the reporting tables used by the business.

04

Matching rules

Document joins, reason precedence and tolerances are visible in executable SQL.

05

Tests

Counts, values, keys, dates and exception treatments are checked on each run.

06

Lineage

A result can be followed back through the model to the records that produced it.

07

Reproducible execution

Retained records, code, database and verification scripts rebuild the published results.

The three builds

Different questions require different models.

The first builds reusable reporting tables, the second checks a full research event population and the third follows one invoice through a contained review. Their grains, records and claims are deliberately different.

Shared reporting model

Wholesale Sales, Margin and Stock Reporting Mart

One reporting model for a wholesale month end.

A reporting analyst prepares sales, margin, purchasing and stock figures from Microsoft’s Wide World Importers sample. The build checks each invoice line before it joins shared customers, products and dates.

Decision
Can the May 2016 sales and stock report be released, and which sales, purchase or stock records need correction first?
Declared grain
One posted invoice line, purchase-order line or stock movement in its own fact table.
Checks completed
18 checks passed; InvoiceLineID 1 is followed through 6 stages.
View Wholesale Sales, Margin and Stock Reporting Mart
Executed DuckDB results showing Wide World Importers fact-table counts, May 2016 sales and margin, and 18 passing report checks
Executed DuckDB results showing 228,265 posted invoice lines and 18 passing report checks.

Complete event-log control

Purchase Order, Receipt and Invoice Reconciliation

Every purchase item receives one supported or held classification.

The complete BPI Challenge 2019 event log records orders, receipts, invoices, reversals and clearing events. The build applies one highest-priority rule to every purchase item and keeps the responsible team beside each hold.

Decision
Can the supplier invoice be released for payment, held for investigation or returned for correction?
Declared grain
One final reconciliation decision for each purchase-order item.
Checks completed
21 checks passed; one purchase-order item is followed through 6 events.
View Purchase Order, Receipt and Invoice Reconciliation
Executed purchase order, receipt and invoice reconciliation showing supported items, payment holds and responsible review teams
Executed reconciliation of 251,734 purchase-order items, including 34,679 retained payment holds.

Contained reviewer workflow

Supplier Invoice Matching and Review

The reviewer sees the invoice, order and accepted receipt before deciding what happens next.

Finance receives the invoice while Procurement and the warehouse hold the supporting records. Each question, owner response, independent rematch and reviewer decision remains attached to the invoice case.

Decision
Should the invoice enter the separate authorised payment process, remain held or be returned to the supplier?
Declared grain
One open review case per invoice and one append-only event for each review action.
Checks completed
27 checks passed; invoice INV-000004 is followed through 12 events.
View Supplier Invoice Matching and Review
Invoice INV-000004 comparison showing an £81 invoice price against the £75 approved order price, 11 accepted units, unchanged bank details, approved price-change support, independent rematch and approval to enter a separate payment process; no payment was executed
INV-000004 compares the £81 invoice price with the £75 approved order price, accepted receipt, supported change and independent rematch before the reviewer decision.

Evidence comparison

What a reviewer can inspect in each build.

The source, population, trace and limitation differ. The entries below are taken from the retained manifests rather than repeated from promotional copy.

Reporting mart

Wholesale Sales, Margin and Stock Reporting Mart

Source and population
Microsoft Wide World Importers sales, purchase and stock records. 228,265 posted invoice lines across 41 business months.
Result available to inspect
Monthly commercial mart, product margin report and recorded publish or hold outcome.
Follow one record
InvoiceLineID 1 is followed from Sales.InvoiceLines through staging, shared keys, the sales fact, validation and the monthly revenue measure.
Validation
18 checks passed; InvoiceLineID 1 is followed through 6 stages.
Scope and limitations
The Microsoft sample does not prove a production database, live refresh or customer scale.
Build status
Executed, independently checked and reproducible from the retained files.

Reconciliation control

Purchase Order, Receipt and Invoice Reconciliation

Source and population
BPI Challenge 2019 purchase-order event log and a retained rule configuration. 251,734 purchase-order items and 1,595,923 retained events.
Result available to inspect
Reconciliation summary and a payment-hold queue containing 34,679 purchase items.
Follow one record
Purchase order item 4507000232_00010 is followed through invoice receipt, goods receipt, clearing and the final payment decision.
Validation
21 checks passed; one purchase-order item is followed through 6 events.
Scope and limitations
The historical anonymised event log supports matching and process analysis; it does not prove a live payment control or the anonymised organisation’s current performance.
Build status
Executed, independently reconciled and reproducible from the retained files.

Reviewer workflow

Supplier Invoice Matching and Review

Source and population
Wide World Importers purchasing structure with deterministic non-client invoice-review records. 2,075 invoice review cases and 8,303 append-only workflow events.
Result available to inspect
Native reviewer report covering 2,075 cases and 8,303 retained workflow events.
Follow one record
INV-000004 is followed through invoice arrival, three-record comparison, a buyer question, approved price change, independent rematch and reviewer approval.
Validation
27 checks passed; invoice INV-000004 is followed through 12 events.
Scope and limitations
The deterministic non-client records do not prove live Accounts Payable operation, payment execution, Power BI or Power Platform.
Build status
Executed, independently checked and published without a Power BI or Power Platform claim.

Continue from the evidence

Start with the commercial reporting problem or inspect the technical practices used to build and check these examples.

Capabilities

SQLModel grains, transformations, tests and reporting marts.
Excel and Power QueryControl file preparation when a workbook remains the right operating tool.
View all Capabilities

Start with one disputed figure

Trace the figures that are hardest to explain.

Bring the current files, one disputed result and the checks already in use. The first conversation does not require confidential or protected data.

Discuss a reporting foundation