JoinKind.Inner

Updated on

JoinKind.Inner (0) is an enumeration that specifies the kind of join operation. It is a member of the JoinKind.Type and represents an inner join which contains a row for each pair of rows from the specified tables that were determined to match based on the specified key columns.

Imagine this – you’re joining the ‘Left Table’ and the ‘Right Table’ on a common column. The image below shows how an ‘inner join’ gives you a new table that consists only of the shared or common elements.

Inner Join in Power Query M

Examples

The inner join returns rows in Table1 matching with rows in Table2. To specify the inner join operation for the Table.NestedJoin function you can use its 6th argument.

= Table.NestedJoin(
      CustomersTable,
      {"CustomerID_1"},
      OrdersTable,
      {"CustomerID_2"},
      "Orders"           
      JoinKind.Inner // specifies the JoinKind
  )

/* ----------------------------------------
    You can also write the short-hand value
 ------------------------------------------ */

= Table.NestedJoin(
      CustomersTable,
      {"CustomerID_1"},
      OrdersTable,
      {"CustomerID_2"},
      "Orders"           
      0                   // the concise way to specify the inner join
  )

Learn more about JoinKind.Inner in the following articles:

Other related enumerations are:

Applies to

Here’s a list of functions that work with JoinKind.Type:

Contribute » | Contributors: Rick de Groot

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy