In Tableau workbooks, when relating tables with mismatched relationship keys, using INCLUDE or EXCLUDE Level of Detail (LOD) calculations, or multi-table FIXED calculations causes unmatched records to show as Null or disappear from the view. However, standard dimensions or single-table FIXED LOD calculations may display the data correctly. This behavior varies depending on how the dynamic join is executed in Tableau.
For example, consider the following table structure.
Although the two tables can be related using the Key field, some keys are missing from each table. In this case, INCLUDE, EXCLUDE, and FIXED LOD that use dimensions from multiple tables will return NULL for records where the keys do not match.
Calculation Examples:
Cause:
Tableau's relationships feature queries tables dynamically based on the context of the fields in the view.
FIXED LOD): These calculations belong to a single table and behaves as a LEFT JOIN relative to the view's dimensions.INCLUDE/EXCLUDE LOD, or multi-table FIXED LOD): These calculations do not belong to a single table and behaves as an INNER JOIN.As a result, records with mismatched relationship keys are dropped from the query results due to this dynamic inner join.
To display values for mismatched keys, apply one of the following workarounds. Please note that a detailed sample is available in the attached workbook.
If the calculation only requires dimensions from a single table, convert it to a FIXED LOD calculation.
INCLUDE or EXCLUDE LOD as a FIXED LOD. For example, refer to the following formula structure:{ FIXED [Dimension] : SUM([Measure]) }
FIXED LOD calculation is contained within a single table, the dynamic join acts as a LEFT JOIN, allowing unmatched key rows to display values.Combine the tables using a Full Outer Join instead of logical relationships.
INCLUDE or EXCLUDE LOD calculations will display values for all rows.Create a master "Data Scaffold" table containing all key variations and join other tables to it.
Set up logical relationships using a master Data Scaffold table.
INCLUDE or EXCLUDE LODs.005385908
33 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.