Skip to content

Why did merging my AI asset and review tables create more rows than the original ledger?

A Power Query merge can retain multiple matching rows from the related table. Expanding that related column can therefore create several output rows for one original asset. Check the relationship cardinality before treating the extra rows as duplicate jobs or summing a repeated job-level value. The correct result may be one-to-many, but its row grain and aggregation rule must be explicit.

PRODUCTION LEDGER TOOLSAISwapLab team · Editorial methodPublished 3 min read
See the recorded exampleExplore 67 Image SkillsIndependent finishing · Check the actual file
Editorial workflow: State the grain of both input tables → Inspect nested matches before expanding → Reconcile row counts and metric ownership.
Original editorial workflow diagram. It summarizes the guide's decisions; it is not a model output, interface screenshot or additional quality experiment.

Why did merging my AI asset and review tables create more rows than the original ledger?

These are external spreadsheet transformations of records the team already has. The proposed fields are not AISwapLab API guarantees, and a merge cannot verify an actual charge or regenerate missing account history. This documentation-based procedure is unexecuted. Unlike XLOOKUP’s selection of one match, the relevant operation intentionally exposes all matching related records when the merged column is expanded.

What to do next

  1. 01

    State the grain of both input tables

    Keep unchanged source copies and write one sentence describing what each row represents. An asset table may contain one row per saved version while a review table contains one row per reviewer observation. Identify the join columns and inspect their data types on both sides. Microsoft requires compatible selected-column types for a useful merge. Do not assume a repeated asset key is an error when the second table deliberately contains several review events for that asset.

  2. 02

    Inspect nested matches before expanding

    Perform the proposed merge in a disposable query and inspect the related table column before expansion. Record examples with zero, one and several matches. Choose a join kind according to the intended inclusion policy rather than whichever preview looks shortest. Keep fuzzy matching separate from exact key matching and do not enable it as a silent fix for unresolved identifiers. Select only the related columns required for the output, retaining enough key evidence to explain each expanded row’s origin.

  3. 03

    Reconcile row counts and metric ownership

    Expand the related table deliberately and compare the output row count with the input count and observed match cardinalities. Decide whether a numeric column belongs to an asset or a review event. A job-level amount repeated across review rows must not automatically be summed as if every repetition were another job. Preserve an asset-level summary separately where required, and reconcile distinct source records with actual account evidence. Remove only genuinely erroneous records under an explicit rule, not every row that happens to repeat a key.

A concrete example

Unexecuted fixture: an Assets table has one row for a1 and one for a2. Reviews has two observations for a1 and one for a2. A merge followed by expansion can correctly produce three asset-review rows. If an asset-level planning value accompanies both a1 observations, its repetition does not represent two generation jobs. The fixture is invented and reports no actual usage, payment or account reconciliation result.

Production ledger native-contract worksheet

ContractProposed proofReject when
RelationshipInspect related tables before expansionMultiple matches are assumed impossible
AggregationAssign each measure to its row grainRepeated job-level values are summed blindly

Before you call it ready

  • Declare one row’s meaning in each input and output.
  • Inspect zero, one and multiple related matches before expansion.
  • Do not sum repeated asset-level values as new job events.

When to stop or choose another method

Stop when output grain is unclear or matching types and keys are unresolved. Retain the inputs and query steps. A clean preview is not proof that the relationship is one-to-one or that the resulting aggregate describes actual website activity.

Sources

Review the result in context.

Compare the recorded example and its documented limitations.

See the recorded example