<?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: Remove lines in load with identical keys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1608362#M444912</link>
    <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I didn't get to test it out, because a co worker for a solution.&lt;/P&gt;&lt;P&gt;I ended up using group by on INVOICE_ID and then using LastValue in another table that I joined with it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2019 07:30:54 GMT</pubDate>
    <dc:creator>CanOls</dc:creator>
    <dc:date>2019-08-01T07:30:54Z</dc:date>
    <item>
      <title>Remove lines in load with identical keys</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607890#M444864</link>
      <description>&lt;P&gt;Hi Qlick Community&lt;/P&gt;&lt;P&gt;I have a table as demonstrated below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to make a load of the table, but sort out values where lines have an identical Invoice_ID.&lt;/P&gt;&lt;P&gt;In case of an identical Invoice_ID, I'd like only load the newest line of that Id based on the date.&amp;nbsp; The invoice_ID can occur only once and up to&amp;nbsp; 4 times. I'm aiming for a general solution that can handle all cases.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Casper&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 530px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16293i01538FE7C0C2471A/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607890#M444864</guid>
      <dc:creator>CanOls</dc:creator>
      <dc:date>2024-11-16T02:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sort load with identical keys</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607897#M444865</link>
      <description>&lt;P&gt;You can use to sort properties of the char at front end to sort the columns as you want&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter.JPG" style="width: 413px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/16295iF2794CEFE8C454C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="filter.JPG" alt="filter.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also you can rearrange the column order in "Sorting" Properties to define the second sort order.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 08:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607897#M444865</guid>
      <dc:creator>miskinmaz</dc:creator>
      <dc:date>2019-07-31T08:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sort load with identical keys</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607900#M444866</link>
      <description>&lt;P&gt;That looks like QlikSense, and I'm using QlikView, I'm not sure that I have that option.&lt;/P&gt;&lt;P&gt;I'm might have worded my question wrong. I'm looking for a way to remove the lines I don't need in the load.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 08:59:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607900#M444866</guid>
      <dc:creator>CanOls</dc:creator>
      <dc:date>2019-07-31T08:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Remove lines in load with identical keys</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607907#M444867</link>
      <description>&lt;P&gt;You can use an Exists() clause in your data load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, your Invoices table load might be something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoices:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;INVOICE_ID,&amp;nbsp;&lt;/P&gt;&lt;P&gt;USER_NAME,&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIME_STAMP,&amp;nbsp;&lt;/P&gt;&lt;P&gt;, [all your other fields here]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Your Data Source]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE NOT Exists(INVOICE_ID);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will load only the first instance of each INVOICE_ID&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 09:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607907#M444867</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2019-07-31T09:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Remove lines in load with identical keys</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607976#M444870</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But what if I don't want to load the first instance of the ID, but the newest, according to the time stamp?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 10:43:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607976#M444870</guid>
      <dc:creator>CanOls</dc:creator>
      <dc:date>2019-07-31T10:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove lines in load with identical keys</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607991#M444872</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;1. Load:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;[Table with max timestamp invoice&amp;nbsp; only]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;noConcatenate Load&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;Invoice_ID, &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;Max(TIME_STAMP) as&amp;nbsp;TIME_STAMP&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;resident Tab&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;group by Invoice_ID;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Join table and mark records with max timestamp by invoice:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;Join(Tab)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;Invoice_ID,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;TIME_STAMP,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;1 as LoadMaxTSFlag&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;resident&amp;nbsp;[Table with max timestamp invoice&amp;nbsp; only];&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Load only marked records:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;noConcatenate load *&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;resident Tab&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000FF"&gt;&lt;SPAN&gt;where&amp;nbsp;LoadMaxTSFlag=1;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 11:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607991#M444872</guid>
      <dc:creator>Zhandos_Shotan</dc:creator>
      <dc:date>2019-07-31T11:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove lines in load with identical keys</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607999#M444873</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You might want to check FirstSortedValue() in the Load Script&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's and example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Layout-Visualizations/FirstSortedValue/td-p/317853" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Layout-Visualizations/FirstSortedValue/td-p/317853&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 11:21:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1607999#M444873</guid>
      <dc:creator>siddheshmane</dc:creator>
      <dc:date>2019-07-31T11:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Remove lines in load with identical keys</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1608362#M444912</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I didn't get to test it out, because a co worker for a solution.&lt;/P&gt;&lt;P&gt;I ended up using group by on INVOICE_ID and then using LastValue in another table that I joined with it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 07:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-lines-in-load-with-identical-keys/m-p/1608362#M444912</guid>
      <dc:creator>CanOls</dc:creator>
      <dc:date>2019-08-01T07:30:54Z</dc:date>
    </item>
  </channel>
</rss>

