skip to content

Analysis / Data engineering and quality

Detect data grain mismatches in a report

Detect join driven row multiplication and repeated measures, quantify metric inflation, and propose aggregation that preserves the intended grain.

A starting point for

Data analyst · Analytics engineer

Bring this question into Chat

Your starting prompt.

Inspect [report SQL] and [input datasets] to identify grain mismatches such as order totals repeated on line items or account values repeated across users. Calculate row multiplication and metric inflation under the current joins. Propose preaggregation or join changes, with before and after counts for [sample period]. Keep additive and nonadditive measures distinct and document assumptions about unique entity keys.

Copy this starting point, then replace the placeholders with your own inputs.

Method and review

Keep the assumptions visible.

Profile keys, row counts, types, missing values and join cardinality. Retain source lineage and concrete exception records so a correction can be checked.

For this task, check

Distinct sums can mask duplicate values while also discarding valid equal valued transactions.

This starting prompt has no published worked example yet. Begin with a small sample and check the calculations before relying on the result.

Before you begin

  • Bring exports you are allowed to upload, or data your Workspace can already query.
  • Choose the reporting period and agree what each record represents.

Work with permitted files or queryable data. Verify the result against the original records.

Take the next step

Make it your investigation.

Copy the prompt above, create or open your Workspace, and paste it into Chat. Add the inputs you have permission to use and adapt the assumptions with your agent.

Start exploring

Your prompt is carried by copy and paste. Signing up does not submit it or start this work automatically.

Or start with your own agent

The setup prompt includes this public task. Your agent will help you connect when needed and use the access you approve.

Choose Claude, Codex, or Cursor—or copy the prompt to use anywhere.