<?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: Outer Join without duplicates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194226#M462317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; There´re many ways to fix this situations. Below some methods:&lt;/P&gt;&lt;P&gt;- Using isnull on load script; &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/NULLFunctions/IsNull.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/NULLFunctions/IsNull.htm"&gt;IsNull ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Reading on a separate table and performing a update/fix dates using "where" clause;&lt;/P&gt;&lt;P&gt;- Using IF and IsNull on his data object correcting the display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please, mark the CORRECT/HELPFULL comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2016 14:29:01 GMT</pubDate>
    <dc:creator>Ricardo_Gerhard</dc:creator>
    <dc:date>2016-09-29T14:29:01Z</dc:date>
    <item>
      <title>Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194222#M462313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to join two tables and keep records from both. Some of the record id/loan numbers are in both tables but some are not. I'm ending up with duplicates using an outer join. Is there a way to prevent this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Loan Number&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Old Loan Number&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;123455&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;678901&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;123455&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;123456&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;123457&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;123051&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;123457&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 14:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194222#M462313</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-09-29T14:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194223#M462314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Lawrence,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Can you provide a simple table with a sample result table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 14:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194223#M462314</guid>
      <dc:creator>Ricardo_Gerhard</dc:creator>
      <dc:date>2016-09-29T14:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194224#M462315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I'm getting is like the table above. What I'd like to see is the table above without the duplicate loan numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 14:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194224#M462315</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-09-29T14:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194225#M462316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;load [Loan Number], [Old Loan Number] from Source1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; concatenate(t)&lt;/P&gt;&lt;P&gt;load [Loan Number], [Old Loan Number] from Source2 where not exists([Loan Number]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 14:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194225#M462316</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-09-29T14:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194226#M462317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; There´re many ways to fix this situations. Below some methods:&lt;/P&gt;&lt;P&gt;- Using isnull on load script; &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/NULLFunctions/IsNull.htm" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/NULLFunctions/IsNull.htm"&gt;IsNull ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- Reading on a separate table and performing a update/fix dates using "where" clause;&lt;/P&gt;&lt;P&gt;- Using IF and IsNull on his data object correcting the display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please, mark the CORRECT/HELPFULL comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 14:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194226#M462317</guid>
      <dc:creator>Ricardo_Gerhard</dc:creator>
      <dc:date>2016-09-29T14:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194227#M462318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More clarification may be needed. The 1st table is a record of all current loans (no [Old Loan Number] records exists in this table). The 2nd table contains loans paid off [Old Loan Number] as well as those where the customer was recaptured with a new loan (indicated by [Loan Number] of the new loan). The 2nd table new [Loan Number] may be contained in the 1st table, but may not due to timing issues. I want to keep one record for each [Loan Number] that exists in either table. Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194227#M462318</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-09-29T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194228#M462319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Meant to say 1 record for each record in either table - [Loan Number] and [Old Loan Number] and matched where [Loan Number]=[Loan Number]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194228#M462319</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-09-29T16:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194229#M462320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me isn't it quite clear yet how your sources look like and what should be the expected result by merging them. It could be that it won't be possible with an one-step solution - maybe you need further load steps to flag and remove the unwanted records, for example with a check to the previous record in a sorted load. Take a look here what I mean: &lt;A href="https://community.qlik.com/docs/DOC-9314"&gt;Peek() or Previous() ?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 05:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194229#M462320</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-09-30T05:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194230#M462321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you are right about a 2 step process. So table 1 will have fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loan Number&lt;/P&gt;&lt;P&gt;Customer Name&lt;/P&gt;&lt;P&gt;Address&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2 will have fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New Loan Number&lt;/P&gt;&lt;P&gt;Old Loan Number&lt;/P&gt;&lt;P&gt;Customer Name&lt;/P&gt;&lt;P&gt;Address&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I perform a simple outer join I get the results in the initial post in this thread. I'd like to include all of the records from the 1st table all of the records with an Old Loan Number from the second table, matching on any records where the Loan Number = New Loan Number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 12:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194230#M462321</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-09-30T12:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194231#M462322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like you just wanna join the new Loan Number on existing data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load table2 as a mapping table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map_newLoanNumber:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Old Loan Number,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Loan Number&lt;/P&gt;&lt;P&gt;From X;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use the applymap funktion on table1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('&lt;SPAN style="font-size: 13.3333px;"&gt;map_newLoanNumber', [Loan Number], 'N/A' ) as [New Loan Number]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;From Y;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Teis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 13:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194231#M462322</guid>
      <dc:creator>teiswamsler</dc:creator>
      <dc:date>2016-09-30T13:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Outer Join without duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194232#M462323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I see that wasn't as clear as it needed to be. Need to keep ALL records from both tables, but match where there is a match between Loan Number and New Loan Number. The problem is that not every Old Loan Number has a New Loan Number, so matching on Loan Number and New Loan Number alone loses records. Again trying to keep track of 1) all loans in current inventory, 2) all those that have paid off and 3) those that have been paid off and customer recaptured as new loan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 14:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-Join-without-duplicates/m-p/1194232#M462323</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2016-09-30T14:38:14Z</dc:date>
    </item>
  </channel>
</rss>

