merge_queries
Join two Power Query tables on matching key columns and optionally expand selected columns from the right table. Specify join kind and key pairs for merging.
Instructions
Power Query Merge: join another query into this table on matching key columns, then optionally expand chosen columns. Appends Table.NestedJoin (+ Table.ExpandTableColumn) to the table's M query. leftKeys/rightKeys are comma-separated and must be equal length. joinKind = Inner | LeftOuter | RightOuter | FullOuter | LeftAnti | RightAnti.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| joinKind | No | Inner | LeftOuter | RightOuter | FullOuter | LeftAnti | RightAnti (default Inner) | Inner |
| 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 | ||
| rightTable | Yes | the query/table to merge in (the right side) | |
| expandColumns | No | columns from the right table to expand, comma-separated (omit to leave the merge column nested) | |
| partitionName | No | partition name (optional; defaults to the first partition) |