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
- 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.
- 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.
- 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
| Contract | Proposed proof | Reject when |
|---|---|---|
| Relationship | Inspect related tables before expansion | Multiple matches are assumed impossible |
| Aggregation | Assign each measure to its row grain | Repeated 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.
