<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Getting duplicate records after using Joins for three different tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-duplicate-records-after-using-Joins-for-three-different/m-p/1599317#M597219</link>
    <description>&lt;P&gt;Yeah it will, but all three tables will remain separate which means Post and Creation Dates would be in separate tables and i won't be able to do calculations using them for each record.&lt;/P&gt;&lt;P&gt;Also it doesn't solve the 4 records instead of 2 problem.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2019 08:56:31 GMT</pubDate>
    <dc:creator>pranaview</dc:creator>
    <dc:date>2019-07-05T08:56:31Z</dc:date>
    <item>
      <title>Getting duplicate records after using Joins for three different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-duplicate-records-after-using-Joins-for-three-different/m-p/1599099#M597217</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement: &lt;/STRONG&gt;I have to match the &lt;STRONG&gt;OrderID&lt;/STRONG&gt; from the Table 1 in the Table 2 and then for the respective &lt;STRONG&gt;AssignmentID&lt;/STRONG&gt; in the Table 2, I need to find a match in the Table 3 to complete the connection between the three tables to get the Post Date and Creation Date for each &lt;STRONG&gt;OrderID&lt;/STRONG&gt; which i need for the calculations. Now I tried to apply Left Join between Table 1 and Table 2 and then again a Left Join between the resulting table and the Table 3. This works for unique values in the key fields but in real time, it is fairly common to have multiple records for the same &lt;STRONG&gt;OrderID&lt;/STRONG&gt; with different Post Dates, DocNumber etc and similarly multiple records for the same &lt;STRONG&gt;AssignmentID&lt;/STRONG&gt; with different Creation Date/DeliveryNumber, you get the gist of it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For Ex: If there are two records for the same &lt;STRONG&gt;OrderID&lt;/STRONG&gt; in Table 1 and have two records in the Table 3 for the respective &lt;STRONG&gt;AssignmentID&lt;/STRONG&gt;, then after applying the Joins, I will have 4 records in the resulting table rather than just 2 i.e. a duplicate for each record. What i want is to have both Creation Date and Post Date in my final table for each record in the Table 1 without any duplicates. I couldn't use ApplyMap() because of the duplicates in the Key fields(or is there a workaround?)&lt;/P&gt;&lt;P&gt;Below is a simple example of how the data looks and how it is connected.Please help me out here to get the desired result as without getting this done, there's no moving forward. Let me know if the problem is not clear enough&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;OrderID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Post Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DocNumnber&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;....More Columns&lt;/P&gt;&lt;P&gt;1234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06/23/19&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 98273445&lt;/P&gt;&lt;P&gt;1235&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06/23/19&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 98273450&lt;/P&gt;&lt;P&gt;1235&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06/24/19&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 98273493&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;OrderID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AssignmentID&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;....More Columns&lt;/P&gt;&lt;P&gt;1234&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;873&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1235&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;874&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 3&lt;/P&gt;&lt;P&gt;AssignmentID&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Creation Date&amp;nbsp; &amp;nbsp; &amp;nbsp; DeliveryNumber&lt;/P&gt;&lt;P&gt;873&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06/23/19&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 98749335&lt;/P&gt;&lt;P&gt;874&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06/23/19&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 98749337&lt;/P&gt;&lt;P&gt;874&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 06/25/19&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 98749342&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Pranav&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-duplicate-records-after-using-Joins-for-three-different/m-p/1599099#M597217</guid>
      <dc:creator>pranaview</dc:creator>
      <dc:date>2024-11-16T03:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting duplicate records after using Joins for three different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-duplicate-records-after-using-Joins-for-three-different/m-p/1599172#M597218</link>
      <description>&lt;P&gt;I think that if you put the same name to the fields qlikview&amp;nbsp; will do the match for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 15:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-duplicate-records-after-using-Joins-for-three-different/m-p/1599172#M597218</guid>
      <dc:creator>pianoman15</dc:creator>
      <dc:date>2019-07-04T15:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting duplicate records after using Joins for three different tables</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-duplicate-records-after-using-Joins-for-three-different/m-p/1599317#M597219</link>
      <description>&lt;P&gt;Yeah it will, but all three tables will remain separate which means Post and Creation Dates would be in separate tables and i won't be able to do calculations using them for each record.&lt;/P&gt;&lt;P&gt;Also it doesn't solve the 4 records instead of 2 problem.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2019 08:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-duplicate-records-after-using-Joins-for-three-different/m-p/1599317#M597219</guid>
      <dc:creator>pranaview</dc:creator>
      <dc:date>2019-07-05T08:56:31Z</dc:date>
    </item>
  </channel>
</rss>

