<?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 Remove Duplicate Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-Duplicate-Data/m-p/290298#M107735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the data currently in my db are creating duplicate row.&amp;nbsp; After I combined 3 column namely Shipment_ID, Item_code and ActualDemandQty in "Duplicate" list box as snap shot below it shown the first row is 0 and another with figure 540 in ActualDeliverQty.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore please advise how should I do to remove the duplicate data which is same Shipment_ID, Item_code and ActualDemandQty but only 0 qty in ActualDeliverQty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this discussion I'm attched together with qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="9356" alt="Picture2.jpg" class="jive-image-thumbnail jive-image" height="302" src="https://community.qlik.com/legacyfs/online/9356_Picture2.jpg" style="display: block; margin-left: auto; margin-right: auto; width: 544px; height: 302.22222222222223px;" width="544" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requisitioner aid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2011 11:57:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-09T11:57:01Z</dc:date>
    <item>
      <title>Remove Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Duplicate-Data/m-p/290298#M107735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the data currently in my db are creating duplicate row.&amp;nbsp; After I combined 3 column namely Shipment_ID, Item_code and ActualDemandQty in "Duplicate" list box as snap shot below it shown the first row is 0 and another with figure 540 in ActualDeliverQty.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore please advise how should I do to remove the duplicate data which is same Shipment_ID, Item_code and ActualDemandQty but only 0 qty in ActualDeliverQty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this discussion I'm attched together with qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="9356" alt="Picture2.jpg" class="jive-image-thumbnail jive-image" height="302" src="https://community.qlik.com/legacyfs/online/9356_Picture2.jpg" style="display: block; margin-left: auto; margin-right: auto; width: 544px; height: 302.22222222222223px;" width="544" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requisitioner aid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 11:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Duplicate-Data/m-p/290298#M107735</guid>
      <dc:creator />
      <dc:date>2011-12-09T11:57:01Z</dc:date>
    </item>
    <item>
      <title>Remove Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Duplicate-Data/m-p/290299#M107736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hairulannuar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you sure that these two lines are not part of your original data and that the duplicate was introduced by creating the second table? This is how I interpret your post, maybe I misunderstood you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me that the two records are two records actually originating from your source table SHIPMENT_DETAIL. They have different DateTime record, also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So If you want to remove one line, you should defined how to decide which one to remove, is it only about ActualDeliverQty? Then you maybe could use a where clause in your original load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides that, I noticed that linking your two final tables via multiple fields created a huge synthetic key. Not sure if that's what you want, maybe you want to have a look at this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2011 13:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Duplicate-Data/m-p/290299#M107736</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-12-09T13:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Duplicate-Data/m-p/290300#M107737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to make you confuse here. These two lines are the original data and I created the duplicate table list to list out all the duplicate data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue was the duplicate data is come from other source of system. I want to remove one of the row (orginal data) which the combined script can be defined as &lt;STRONG&gt;SHIPMENT_ID&amp;amp;'-'&amp;amp;Item_code&amp;amp;'-'&amp;amp;ActualDemandQty where the ActualDeliveryQty is 0&lt;/STRONG&gt; (as per the red box in below snap shot). I did combine all the 3 colums in the Duplicate table list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look through this and assist me on how do I need to remove the duplicate data using the above combined script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the synthetic key I'm purposely comment drop table for ShipmentDetails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Hairul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Picture10.jpg" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/9490_Picture10.jpg" style="display: block; margin-left: auto; margin-right: auto;" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Dec 2011 01:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Duplicate-Data/m-p/290300#M107737</guid>
      <dc:creator />
      <dc:date>2011-12-10T01:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicate Data</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Duplicate-Data/m-p/290301#M107738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody can help me in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requisitioner aid&lt;/P&gt;&lt;P&gt;Hairul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 00:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Duplicate-Data/m-p/290301#M107738</guid>
      <dc:creator />
      <dc:date>2011-12-13T00:11:07Z</dc:date>
    </item>
  </channel>
</rss>

