Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Returns a set that contains the cross product of one or more sets, excluding empty tuples and tuples without associated fact table data.
The NonEmptyCrossjoin function returns the cross product of two or more sets as a set, excluding empty tuples or tuples without data supplied by underlying fact tables. Because of how the NonEmptyCrossjoin function works, all calculated members are automatically excluded.
If Count is not specified, the function cross joins all specified sets and excludes empty members from the resulting set. If a number of sets is specified, the function cross joins the numbers of sets specified, starting with the first specified set. The NonEmptyCrossjoin function uses any remaining sets that are specified in subsequent specified sets, but which have not been cross joined to determine which members are considered nonempty in the resulting cross joined set. The NonEmptyCrossjoin function respects the NON_EMPTY_BEHAVIOR setting of calculated measures.