<?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: Eliminating duplicate records based on date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Eliminating-duplicate-records-based-on-date/m-p/1827502#M68112</link>
    <description>&lt;P&gt;Sorry it's not explained for you to understand.&amp;nbsp; I'm not sure how else to explain, here's the code updated with your data file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//load excel data&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;LOAD Sno,&lt;BR /&gt;[Sales order ID],&lt;BR /&gt;[Delivery date],&lt;BR /&gt;[Sales amount],&lt;BR /&gt;[Sales Quantity],&lt;BR /&gt;[Customer Name],&lt;BR /&gt;City,&lt;BR /&gt;Loaction,&lt;BR /&gt;[ZIP Code]&lt;BR /&gt;FROM&lt;BR /&gt;[..\Eliminating duplicate records with mindate.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Duplicates);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//preceding load...&lt;/P&gt;&lt;P&gt;//first determine min date for each sales order id&lt;/P&gt;&lt;P&gt;//second do inner to table on sales order id + mindate, leaving only the mindate per id&lt;BR /&gt;inner join (data)&lt;BR /&gt;load&lt;BR /&gt;[Sales order ID]&lt;BR /&gt;, Min_Delivery_Date as [Delivery date]&lt;BR /&gt;//,1 as flag_mindate&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;load distinct&lt;BR /&gt;[Sales order ID]&lt;BR /&gt;,min([Delivery date]) as Min_Delivery_Date&lt;BR /&gt;resident data&lt;BR /&gt;group by [Sales order ID]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 14:40:16 GMT</pubDate>
    <dc:creator>stevejoyce</dc:creator>
    <dc:date>2021-08-09T14:40:16Z</dc:date>
    <item>
      <title>Eliminating duplicate records based on date</title>
      <link>https://community.qlik.com/t5/App-Development/Eliminating-duplicate-records-based-on-date/m-p/1827390#M68083</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one data set with 78 thousand records, it includes duplicate records&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example,&lt;/P&gt;&lt;P&gt;dataset1:&lt;/P&gt;&lt;P&gt;id &amp;nbsp; &amp;nbsp; Saleid &amp;nbsp;delivery date customer name city location&amp;nbsp;&lt;/P&gt;&lt;P&gt;1234 S123. &amp;nbsp; &amp;nbsp;12 June 2021 ram. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Hyderabad. Hyderabad&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1234. S123. &amp;nbsp;11 June 2021 ram Hyderabad Hyderabad&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;these are the examples of duplicate care records from this I need to load data into Qlik is minimum date records only&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I found duplicate records more than 10 then I need to load least delivery date records and needs to exclude all other records&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone help me with the logic to implement and load the data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 09:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Eliminating-duplicate-records-based-on-date/m-p/1827390#M68083</guid>
      <dc:creator>Correct_Answer</dc:creator>
      <dc:date>2021-08-09T09:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminating duplicate records based on date</title>
      <link>https://community.qlik.com/t5/App-Development/Eliminating-duplicate-records-based-on-date/m-p/1827414#M68086</link>
      <description>&lt;P&gt;//preceding load.&amp;nbsp; first determine min date for desired dimension context (ex. id)&lt;/P&gt;&lt;P&gt;//second inner to table on id+mindate, leaving only the mindate per id&lt;BR /&gt;inner join (tbl)&lt;BR /&gt;load&lt;BR /&gt;id&lt;BR /&gt;, mindate as date&lt;BR /&gt;//,1 as flag_mindate&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;load distinct&lt;BR /&gt;id&lt;BR /&gt;,min(date) as mindate&lt;BR /&gt;resident tbl&lt;BR /&gt;group by id&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;exit script;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 09:56:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Eliminating-duplicate-records-based-on-date/m-p/1827414#M68086</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-09T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminating duplicate records based on date</title>
      <link>https://community.qlik.com/t5/App-Development/Eliminating-duplicate-records-based-on-date/m-p/1827495#M68108</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/146379"&gt;@stevejoyce&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help,&amp;nbsp; but it hard to understand&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please explain a bit more with&amp;nbsp; the attached sample DataSet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 14:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Eliminating-duplicate-records-based-on-date/m-p/1827495#M68108</guid>
      <dc:creator>Correct_Answer</dc:creator>
      <dc:date>2021-08-09T14:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminating duplicate records based on date</title>
      <link>https://community.qlik.com/t5/App-Development/Eliminating-duplicate-records-based-on-date/m-p/1827502#M68112</link>
      <description>&lt;P&gt;Sorry it's not explained for you to understand.&amp;nbsp; I'm not sure how else to explain, here's the code updated with your data file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//load excel data&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;LOAD Sno,&lt;BR /&gt;[Sales order ID],&lt;BR /&gt;[Delivery date],&lt;BR /&gt;[Sales amount],&lt;BR /&gt;[Sales Quantity],&lt;BR /&gt;[Customer Name],&lt;BR /&gt;City,&lt;BR /&gt;Loaction,&lt;BR /&gt;[ZIP Code]&lt;BR /&gt;FROM&lt;BR /&gt;[..\Eliminating duplicate records with mindate.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Duplicates);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//preceding load...&lt;/P&gt;&lt;P&gt;//first determine min date for each sales order id&lt;/P&gt;&lt;P&gt;//second do inner to table on sales order id + mindate, leaving only the mindate per id&lt;BR /&gt;inner join (data)&lt;BR /&gt;load&lt;BR /&gt;[Sales order ID]&lt;BR /&gt;, Min_Delivery_Date as [Delivery date]&lt;BR /&gt;//,1 as flag_mindate&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;load distinct&lt;BR /&gt;[Sales order ID]&lt;BR /&gt;,min([Delivery date]) as Min_Delivery_Date&lt;BR /&gt;resident data&lt;BR /&gt;group by [Sales order ID]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 14:40:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Eliminating-duplicate-records-based-on-date/m-p/1827502#M68112</guid>
      <dc:creator>stevejoyce</dc:creator>
      <dc:date>2021-08-09T14:40:16Z</dc:date>
    </item>
  </channel>
</rss>

