fuzzy_merge
Merge two Power Query tables with fuzzy matching on keys, accommodating typos, casing, and spacing. Tune similarity threshold and join kind for flexible merges.
Instructions
Power Query Fuzzy Merge: join another query on APPROXIMATE key matches (typos, casing, spacing). Appends Table.FuzzyNestedJoin (+ optional Table.ExpandTableColumn) to the table's M query. leftKeys/rightKeys are comma-separated equal-length lists. joinKind = Inner | LeftOuter | RightOuter | FullOuter | LeftAnti | RightAnti. threshold is the 0..1 similarity cut-off (default 0.8). transformationTable is an optional {From,To} mapping query name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| joinKind | No | Inner | LeftOuter | RightOuter | FullOuter | LeftAnti | RightAnti (default LeftOuter) | LeftOuter |
| leftKeys | Yes | this table's key columns, comma-separated | |
| rightKeys | Yes | the right table's key columns, comma-separated (same count as leftKeys) | |
| sessionId | Yes | ||
| threshold | No | similarity threshold 0..1 (default 0.8) | |
| ignoreCase | No | ignore case when matching (optional) | |
| rightTable | Yes | the query/table to merge in (the right side) | |
| ignoreSpace | No | ignore whitespace when matching (optional) | |
| expandColumns | No | columns from the right table to expand, comma-separated (omit to leave nested) | |
| partitionName | No | partition name (optional; defaults to the first partition) | |
| transformationTable | No | optional {From,To} transformation/mapping query name |