New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
The dashboard number looks reasonable until someone points out it's exactly double what finance has.
What you'll have at the end
The table that's fanning out is found with a before-and-after row count, the query is rewritten to sum the total from a table where each order appears once, and a saved guard query catches the same join if it starts doubling totals again.
You need
A SQL query, already running, that joins two tables and sums or averages a column that belongs to one side of that join.
Not covered
Reconciling two reports built on genuinely different metric definitions; this recipe covers a single query that duplicated its own rows.
Checked 26 Aug 2026
Part of the Data Cleaning and Validation for Analysts cookbook