---
schema_version: "1"
id: 9adba40f8301cec4ee8fde537cc43ce053cf4473e3cd8f8e112897f380f837e1
title: Review Join Results in the Data Grid
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/public/desktop/joins_review_data_grid.md
canonical_url: https://help.tableau.com/current/public/desktop/en-us/joins_review_data_grid.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 9a23f53445baa2e04755e79d68527026a57c9937db349f311be9eeda6525d16b
description: Review join results in the data grid and resolve field mismatches.
---
[Skip to main content](#main-content)

# Review Join Results in the Data Grid

After you have created a join on the canvas, review the data grid to make sure the join produces the results that you expect. If the data grid displays data that you don't expect, you might need to modify the join.

## Results in the data grid

- **No data:** If no data displays in the data grid, you might need to change the join type or a join field used in the join condition. If you suspect a mismatch between fields in the join, use a calculation instead. For more information, see [Use calculations to resolve mismatches between fields in a join](#joinoncalcs).
- **Duplicate data:** If you see duplicate data, there a few things you can do. Consider relating the tables instead of joining. For more information, see [Relate Your Data](https://help.tableau.com/current/pro/desktop/en-us/relate_tables.htm).
- **Missing data:** If some data is missing from the data grid, you might need to change the join type or a join field used in the join condition. Again, if you suspect a mismatch between fields in the join, use a calculation instead. For more information, see [Use calculations to resolve mismatches between fields in a join](#joinoncalcs).
- **Many null values:** If you see many null values that you do not expect, you might need to change the join type from the full outer type to the inner type.
- **All null values for one table:** If all values for one table is null, there are no matches between the tables that you are joining. If this is not expected, consider changing the join type.

## Use calculations to resolve mismatches between fields in a join

When the fields in a join condition don't match—that is a mismatch between the values in the fields used in a join condition, the data grid can show little or no data at all. A mismatch between fields can occur for several reasons but often caused by the differences in format of the string values or date values in the fields. In many cases, you can resolve mismatches between the fields in your join by using a calculation.

Most functions are available for you to use in a calculation to create and replace a field in the join condition, with the exception of aggregate functions and table calculation functions.

**Note:**Join calculations are not supported for QuickBooks Online, Marketo, Oracle Eloqua, Anaplan, ServiceNow ITSM, and web data connectors.

**String mismatch**

A common mismatch scenario when working with string data occurs when one of the fields on one side of the join condition is equivalent to two or more fields on the other side of the join condition. In this case, you can use a calculation to combine the two fields so that its format matches the other field in the join condition.

For example, suppose you want to join two tables that contain the following data:

<table>
                    <tbody>
                        <tr>
                            <td>Patron</td>
                            <td>Contact</td>
                        </tr>
                        <tr>
                            <td>
                                <table class="table--plain">
                                    <thead>
                                        <tr class="TableStyle-Basic-Border-Head-Header1">
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1" style="background-color: #ffe4e1;">First name</th>
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1" style="background-color: #ffe4e1;">Last name</th>
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Branch</th>
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Member since</th>
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Units borrowed</th>
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Fees</th>
                                            <th class="TableStyle-Basic-Border-HeadD-Column1-Header1">Suggested limit</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">Alan</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">
                                                <p>Wang</p>
                                            </td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">North</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">2000</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">1</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">0</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">John</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">Smith</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">North</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">2000</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">36</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">3.50</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">Ashley</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">Garcia</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">South</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">2000</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">243</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">11.30</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1" style="background-color: #ffe4e1;">Fred</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1" style="background-color: #ffe4e1;">Suzuki</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">North</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">2000</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">52</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">.90</td>
                                            <td class="TableStyle-Basic-Border-BodyA-Column1-Body1">15</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td>
                                <table class="table--plain">
                                    <thead>
                                        <tr class="TableStyle-Basic-Border-Head-Header1">
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1" style="background-color: #fafad2;">Name</th>
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Member number</th>
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Emergency contact</th>
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Relationship</th>
                                            <th class="TableStyle-Basic-Border-HeadD-Column1-Header1">Emergency number </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #fafad2;">Adam Davis</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">555-0324</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Ellen Davis</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Partner</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">555-0884</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #fafad2;">Alan Wang</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">555-0356</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Jean Wilson</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Mother</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">555-0327</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #fafad2;">Fred Suzuki</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">555-0188</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Jim Suzuki</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Brother</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">555-3188</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #fafad2;">
                                                <p>Henry Wilson</p>
                                            </td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">555-0100</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Laura Rodriquez</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Partner</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">555-0103</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1" style="background-color: #fafad2;">Michelle Kim</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">555-0199</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">Steven Kim</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">Partner</td>
                                            <td class="TableStyle-Basic-Border-BodyA-Column1-Body1">555-0125</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>

The common fields between the two tables appear to be name. However, in the Patron table the first and last names are in separate columns and in the Contact table the first and last names are in the same column. To join the tables on names, you can use a calculation in the left side of the join condition to merge the first name and last name columns together.

![A join calculation that merges the first and last name columns together.](/tableau/current/en-us/public/desktop/en-us/Img/join_joincalc_optioncalc.png)

The result is a calculated field on the left side of the join condition that is accessible only from the join dialog. This calculation converts the field in the Patron table into a format that now matches the format of the field in the Contact table on the right side of the join condition.

![A join table with a calculation that converts the field in one table to match the format of the field in another table in the join condition.](/tableau/current/en-us/public/desktop/en-us/Img/join_joincalc_match.png)

Using the calculation in the join produces the following combined table: 

| First name | Last name | Branch | Member since | Units borrowed | Fees | Suggested limit | Name | Phone number |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Alan | Wang | North | 2000 | 1 | 0 | 15 | Alan Wang | 555-0356 |
| Fred | Suzuki | North | 2000 | 52 | .90 | 15 | Fred Suzuki | 555-0188 |

**Date mismatch**

A common mismatch scenario when working with date data occurs when the date values in one field of the join condition are captured at a different level of detail than the other field in the join condition. In this case you can use a calculation in the join condition to change the format of the field on one side of the join condition so that its format matches the other field in the join condition.

For example, suppose you have the following two tables of data:

<table>
                    <tbody>
                        <tr>
                            <td>Projector rental</td>
                            <td>Patron</td>
                        </tr>
                        <tr>
                            <td>
                                <table class="table--plain">
                                    <thead>
                                        <tr class="TableStyle-Basic-Border-Head-Header1">
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1" style="background-color: #ffe4e1;">Date</th>
                                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Reservation type</th>
                                            <th class="TableStyle-Basic-Border-HeadD-Column1-Header1">Requester ID</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">
                                                <p>1/1/2000</p>
                                            </td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Individual</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">233445589</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">1/28/2002</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">K-12</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">365948999</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">1/29/2002</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Non-profit</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">233448888</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">12/5/2002</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">K-12</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">365948999</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">5/5/2003</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Non-profit</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">334015476
</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">3/12/2004</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">
                                                <p>Non-profit</p>
                                            </td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">334015476
</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">3/15/2006</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">City</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">211896980
</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">7/8/2007</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">K-12</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">334015476
</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">1/4/2008</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Individual</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">560495523</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">3/8/2009</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Non-profit</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">233445566</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">2/14/2014</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">
                                                <p>Non-profit</p>
                                            </td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">233445566</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1" style="background-color: #ffe4e1;">12/21/2015</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Non-profit</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">233445566</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1" style="background-color: #ffe4e1;">2/10/2016</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">Non-profit</td>
                                            <td class="TableStyle-Basic-Border-BodyA-Column1-Body1">233445566</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                            <td>
                                <table class="table--plain">
                                    <thead>
                                        <tr class="TableStyle-Basic-Border-Head-Header1">
                                            <th style="text-align: left;" class="TableStyle-Basic-Border-HeadE-Column1-Header1">ID</th>
                                            <th style="text-align: left;" class="TableStyle-Basic-Border-HeadE-Column1-Header1">First name</th>
                                            <th style="text-align: left;" class="TableStyle-Basic-Border-HeadE-Column1-Header1">Last name</th>
                                            <th style="text-align: left;" class="TableStyle-Basic-Border-HeadE-Column1-Header1">Branch</th>
                                            <th style="text-align: left;background-color: #fafad2;" class="TableStyle-Basic-Border-HeadE-Column1-Header1">Member since</th>
                                            <th style="text-align: left;" class="TableStyle-Basic-Border-HeadE-Column1-Header1">Units borrowed</th>
                                            <th style="text-align: left;" class="TableStyle-Basic-Border-HeadE-Column1-Header1">Fees</th>
                                            <th class="TableStyle-Basic-Border-HeadD-Column1-Header1">Suggested limit</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">454613981</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Adam</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Davis</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">West</td>
                                            <td style="background-color: #fafad2;" class="TableStyle-Basic-Border-BodyE-Column1-Body1">2012</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">25</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">0</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">10</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">232502870</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Alan</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">
                                                <p>Wang</p>
                                            </td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">North</td>
                                            <td style="background-color: #fafad2;" class="TableStyle-Basic-Border-BodyE-Column1-Body1">2000</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">1</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">0</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">298000916</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Amanda</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Smith</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">North</td>
                                            <td style="background-color: #fafad2;" class="TableStyle-Basic-Border-BodyE-Column1-Body1">2001</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">54</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">6.4</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">233445566</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Ashley</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Garcia</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">South</td>
                                            <td style="background-color: #fafad2;" class="TableStyle-Basic-Border-BodyE-Column1-Body1">2000</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">243</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">11.30</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">900005122</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Brian</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Frank</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">East</td>
                                            <td style="background-color: #fafad2;" class="TableStyle-Basic-Border-BodyE-Column1-Body1">2011</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">12</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">.10</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">10</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">921491769</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Elizabeth</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Johnson</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">West</td>
                                            <td style="background-color: #fafad2;" class="TableStyle-Basic-Border-BodyE-Column1-Body1">2010</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">19</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">.5</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">10</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">233445589</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Fred</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Suzuki</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">North</td>
                                            <td style="background-color: #fafad2;" class="TableStyle-Basic-Border-BodyE-Column1-Body1">2000</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">52</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">.90</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">344556677</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Henry</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Wilson</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">South</td>
                                            <td style="background-color: #fafad2;" class="TableStyle-Basic-Border-BodyE-Column1-Body1">2005</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">3</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">.2</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">939502870</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">Jane</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">Johnson</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">West</td>
                                            <td style="background-color: #fafad2;" class="TableStyle-Basic-Border-BodyB-Column1-Body1">2017</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">0</td>
                                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">0</td>
                                            <td class="TableStyle-Basic-Border-BodyA-Column1-Body1">10</td>
                                        </tr>
                                        <tr class="TableStyle-Basic-Border-Body-Body1">
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">233448978</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">John</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Smith</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">North</td>
                                            <td style="background-color: #fafad2;" class="TableStyle-Basic-Border-BodyE-Column1-Body1">2000</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">36</td>
                                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">3.50</td>
                                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>

To find out more information about new patron behavior, joining the Patron table to the Projector Rental table might provide some insight about which library services motivate new memberships. The common fields between the two tables appear to be "Date" and "Member since." However, the date values in each field are captured at different levels of detail. To join these tables on their respective date fields, use a combination of DATE functions in a calculation on each side of the join condition to make the level of detail in each field match.

<table class="table--plain">
                    <tbody>
                        <tr>
                            <td>
                                <p><code>DATE(DATETRUNC('year', [Date]))</code>
                                </p>
                            </td>
                            <td><code>DATE('01/01/'+STR([Member since]))</code>
                            </td>
                        </tr>
                    </tbody>
                </table>

Using the calculation in the join produces the following combined table:

<table class="table--plain">
                    <thead>
                        <tr class="TableStyle-Basic-Border-Head-Header1">
                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Date</th>
                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Reservation type</th>
                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Requester ID</th>
                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">ID</th>
                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">First name</th>
                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Last name</th>
                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Branch</th>
                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Member since</th>
                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Units borrowed</th>
                            <th class="TableStyle-Basic-Border-HeadE-Column1-Header1">Fees</th>
                            <th class="TableStyle-Basic-Border-HeadD-Column1-Header1">Suggested limit</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="TableStyle-Basic-Border-Body-Body1">
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">
                                <p>1/1/2000</p>
                            </td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Individual</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">233445589</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">232502870</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Alan</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Wang</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">
                                <p>North</p>
                            </td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">2000</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">1</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">0.00</td>
                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                        </tr>
                        <tr class="TableStyle-Basic-Border-Body-Body1">
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">1/1/2000</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Individual</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">233445589</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">233445589</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Fred</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Suzuki</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">North</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">2000</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">52</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">0.90</td>
                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                        </tr>
                        <tr class="TableStyle-Basic-Border-Body-Body1">
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">1/1/2000</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Individual</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">233445589</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">233445566</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Ashley</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">Garcia</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">South</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">2000</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">243</td>
                            <td class="TableStyle-Basic-Border-BodyE-Column1-Body1">11.30</td>
                            <td class="TableStyle-Basic-Border-BodyD-Column1-Body1">15</td>
                        </tr>
                        <tr class="TableStyle-Basic-Border-Body-Body1">
                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">1/1/2000</td>
                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">Individual</td>
                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">233445589</td>
                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">233448978</td>
                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">John</td>
                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">Smith</td>
                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">North</td>
                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">2000</td>
                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">36</td>
                            <td class="TableStyle-Basic-Border-BodyB-Column1-Body1">3.50</td>
                            <td class="TableStyle-Basic-Border-BodyA-Column1-Body1">15</td>
                        </tr>
                    </tbody>
                </table>

To determine if a patron rented the projector in the same year he or she started his or her membership, add one more clause to the join based on ID.

![A join table with a truncated date.](/tableau/current/en-us/public/desktop/en-us/Img/join_joincalc_datetrunc_ID.png)

The result of the additional join condition shows that only one patron might have started his membership to rent a projector.

| Date | Reservation type | Requester ID | ID | First name | Last name | Branch | Joined | Units borrowed | Fees | Suggested limit |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1/1/2000 | Individual | 233445589 | 233445589 | Fred | Suzuki | North | 2000 | 52 | 0.90 | 15 |