<?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: Left Join: Avoid duplicates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-Join-Avoid-duplicates/m-p/1722014#M723261</link>
    <description>&lt;P&gt;You could use &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/AggregationFunctions/firstsorted.htm" target="_self"&gt;FirstSortedValue()&lt;/A&gt;&amp;nbsp;to solve this.&lt;/P&gt;&lt;P&gt;Sales:&lt;BR /&gt;LOAD Item, Amount&lt;BR /&gt;FROM Sales;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Sales)&lt;BR /&gt;LOAD&amp;nbsp;&lt;BR /&gt;&lt;SPAN class="script_token"&gt;Item,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="script_token"&gt;FirstSortedValue (&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;&amp;nbsp;Info, -Sequence&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;) as Info&lt;/SPAN&gt;&lt;BR /&gt;FROM LeftJoinTable&lt;BR /&gt;GROUP BY Item;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2020 07:37:18 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2020-06-25T07:37:18Z</dc:date>
    <item>
      <title>Left Join: Avoid duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Avoid-duplicates/m-p/1722004#M723260</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i would like to do a left join and avoid duplicates.&lt;/P&gt;&lt;P&gt;I would like to join using the "item" but as you can see on the "left-join" table for the same item there are more than 1 record. What i would like to do is to join using only the most recent value in case more than 1 item are found: so what is in sequence 1-4 will be ignored.&lt;/P&gt;&lt;P&gt;there is any way i can do this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="left join.PNG" style="width: 819px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36226iBFB3D7C01D6A66F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="left join.PNG" alt="left join.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Avoid-duplicates/m-p/1722004#M723260</guid>
      <dc:creator>qlikviewaf</dc:creator>
      <dc:date>2024-11-16T18:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join: Avoid duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Avoid-duplicates/m-p/1722014#M723261</link>
      <description>&lt;P&gt;You could use &lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/AggregationFunctions/firstsorted.htm" target="_self"&gt;FirstSortedValue()&lt;/A&gt;&amp;nbsp;to solve this.&lt;/P&gt;&lt;P&gt;Sales:&lt;BR /&gt;LOAD Item, Amount&lt;BR /&gt;FROM Sales;&lt;/P&gt;&lt;P&gt;LEFT JOIN (Sales)&lt;BR /&gt;LOAD&amp;nbsp;&lt;BR /&gt;&lt;SPAN class="script_token"&gt;Item,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="script_token"&gt;FirstSortedValue (&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;&amp;nbsp;Info, -Sequence&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;) as Info&lt;/SPAN&gt;&lt;BR /&gt;FROM LeftJoinTable&lt;BR /&gt;GROUP BY Item;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 07:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Avoid-duplicates/m-p/1722014#M723261</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-06-25T07:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join: Avoid duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Avoid-duplicates/m-p/1722044#M723262</link>
      <description>&lt;P&gt;Might help you:&lt;/P&gt;&lt;P&gt;Left Join (sales)&lt;/P&gt;&lt;P&gt;Load Item&lt;/P&gt;&lt;P&gt;,Info&lt;/P&gt;&lt;P&gt;,Max(Sequence) as Sequence&lt;/P&gt;&lt;P&gt;Resident LeftJoinTable&lt;/P&gt;&lt;P&gt;Group By Item, Info;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 08:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Avoid-duplicates/m-p/1722044#M723262</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2020-06-25T08:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join: Avoid duplicates</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Avoid-duplicates/m-p/1726495#M723263</link>
      <description>&lt;P&gt;You have two possible solutions posted, we would greatly appreciate it if you would return to your thread and close things out by using the Accept as Solution button on the post(s) that helped you with the use case.&amp;nbsp; If you did something different, you can post that and then mark that using the button, and if you still have further questions, please leave an update post.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 12:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Avoid-duplicates/m-p/1726495#M723263</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-07-09T12:41:09Z</dc:date>
    </item>
  </channel>
</rss>

