NATURALLEFTOUTERJOIN function



Description

Performs an outer join of a table with another table. The tables are joined on common columns (by name) in the two tables. The two tables should be related.

If the two tables have no common column names, or if there is no relationship between the two tables, an error is returned.

DAX NATURALLEFTOUTERJOIN function is new in Excel 2016.

Syntax

NATURALLEFTOUTERJOIN (<leftJoinTable>, <rightJoinTable>) 

Parameters

Sr.No. Parameter & Description
1

leftJoinTable

A table expression defining the table on the left side of the join.

2

rightJoinTable

A table expression defining the table on the right side of the join.

Return Value

table which includes only rows from rightJoinTable for which the values in the common columns specified are also present in leftJoinTable. The table returned will have the common columns from the left table and the other columns from both the tables.

Remarks

  • There is no sort order guarantee for the results.

  • Columns being joined on must have the same data type in both tables.

  • Only columns from the same source table (have the same lineage) are joined on. For example, Products[ProductID], WebSales[ProductdID], StoreSales[ProductdID] with many-to-one relationships between WebSales and StoreSales and the Products table based on the ProductID column, WebSales and StoreSales tables are joined on [ProductID].

  • Strict comparison semantics are used during join. There is no type coercion; for example, 1 does not equal 1.0.

Example

= SUMX (NATURALLEFTOUTERJOIN (Salesperson,Sales),[Sales Amount]) 
dax_functions_other.htm
Advertisements