Your order register shows a small set of orders, but the dashboard reports a larger number. Before deleting apparently duplicated records, check what each row of the report represents. A query that joins orders to their line items can repeat the same order even when the source data is correct.

Original conceptual illustration, not a product screenshot or client installation. Technical sources reviewed on 26 November 2026.

Define one unit for each metric

Write down whether the dashboard counts orders, order lines, shipments or customers. Also define the included status, date field and business scope. “Sales this month” is not a complete calculation rule if different teams mean orders created, invoices issued or payments received.

Use a fictional example: one order has three product lines. An order-to-lines result can contain three rows while still representing one order. Counting those rows answers a different question from counting the order itself. Label the two metrics separately if both are useful.

Inspect the join before blaming the data

PostgreSQL's table-expression documentation explains that an inner join produces a row for each matching row on the other side. Ask the developer to show a redacted row-level result for one known order before aggregation.

Check additional relationships too. If an order has several lines and several payment records, joining both child sets can multiply the combinations. This is a query-design issue to investigate, not proof that staff entered the order repeatedly. Preserve the source records while the report is reconciled.

Reconcile counts and money separately

The PostgreSQL aggregate reference distinguishes counting input rows from counting non-null values. The developer must choose a calculation that matches the intended business unit. Counting distinct order identifiers may fix an order count while leaving a repeated order total incorrectly summed.

Do not replace that sum with distinct monetary values as a blanket fix: two different orders can legitimately have the same amount. Depending on the requirement, the implementation may aggregate child data to one row per order before combining it, or calculate separate metrics from separate, correctly scoped datasets.

Include orders with no matching child record where the business rule requires them. Review cancelled transactions, credit notes and partial payments explicitly. The amount-rounding guide covers a different source of reconciliation differences; rounding should not conceal duplicated input rows.

Approve a compact reconciliation pack

  1. Select authorised test records with one line, multiple lines, multiple payments and no payment. Record the expected result for each metric.
  2. Compare the source register, row-level query output, dashboard and exported report using the same date and status filters.
  3. Verify counts and monetary totals independently, including two orders with equal totals.
  4. Have the business owner approve the definitions, then check performance on representative data. Use the query-plan review guide if the correct report is slow.

ITZ's custom software development service can review the reporting logic. Describe which dashboard metric disagrees with your register.

Review your dashboard counting rules

Bring the metric definition, affected filters and a redacted example with an expected result. Discuss query relationships, reconciliation cases and clear acceptance criteria. Review Your Dashboard Counting Rules