<?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 Avoid duplicated records after join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avoid-duplicated-records-after-join/m-p/355144#M131822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Company, Code, FirstValue(ID) as ID resident Table1 group by Company, Code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and not using the DistinctTable1 at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 17:35:42 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-05-16T17:35:42Z</dc:date>
    <item>
      <title>Avoid duplicated records after join</title>
      <link>https://community.qlik.com/t5/QlikView/Avoid-duplicated-records-after-join/m-p/355143#M131821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a problem where I have duplicated records after join of two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got two table and I just want to merge the value of one field form one table to the other. Problem is that the field I want to merge is unique, whereas my joining fields could be repeated. I just want the first value for each occurrence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's make an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LOAD * inline [&lt;BR /&gt;&amp;nbsp; ID, Company, Code&lt;BR /&gt;&amp;nbsp; 1, A, 4711&lt;BR /&gt;&amp;nbsp; 2, A, 4711&lt;BR /&gt;&amp;nbsp; 3, B, 0815&lt;BR /&gt;&amp;nbsp; 4, B, 0815&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DistinctTable1:&lt;BR /&gt;LOAD Distinct&lt;BR /&gt;Company,&lt;BR /&gt;Code&lt;BR /&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, DistinctTable1 is fine now. But I also want field ID in this table, but just the first value. So, my table should look like this afterwards:&lt;/P&gt;&lt;P&gt;ID, Company, Code&lt;/P&gt;&lt;P&gt;1, A, 4711&lt;/P&gt;&lt;P&gt;3, B, 0815&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use different Join and Keep statements, but since ID is unique it always gives me the whole Table1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 16:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoid-duplicated-records-after-join/m-p/355143#M131821</guid>
      <dc:creator />
      <dc:date>2012-05-16T16:44:47Z</dc:date>
    </item>
    <item>
      <title>Avoid duplicated records after join</title>
      <link>https://community.qlik.com/t5/QlikView/Avoid-duplicated-records-after-join/m-p/355144#M131822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Company, Code, FirstValue(ID) as ID resident Table1 group by Company, Code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and not using the DistinctTable1 at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 17:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoid-duplicated-records-after-join/m-p/355144#M131822</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-16T17:35:42Z</dc:date>
    </item>
    <item>
      <title>Avoid duplicated records after join</title>
      <link>https://community.qlik.com/t5/QlikView/Avoid-duplicated-records-after-join/m-p/355145#M131823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfect!&lt;/P&gt;&lt;P&gt;Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 16:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoid-duplicated-records-after-join/m-p/355145#M131823</guid>
      <dc:creator />
      <dc:date>2012-05-17T16:38:56Z</dc:date>
    </item>
  </channel>
</rss>

