<?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 How To Remove Duplicates and Count Rows? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358153#M822925</link>
    <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that has duplicate entries in the data for LineItemId and LineItemFactId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As always, any and all help is appreciated.&amp;nbsp; Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>pnn44794</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How To Remove Duplicates and Count Rows?</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358153#M822925</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that has duplicate entries in the data for LineItemId and LineItemFactId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As always, any and all help is appreciated.&amp;nbsp; Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358153#M822925</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Duplicates and Count Rows?</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358154#M822926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Perry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the below solution will help you to solve your issue:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count({&amp;lt;ParentLineItemId-={'-'}&amp;gt;}distinct LineItemId)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172600_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Neelima&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 03:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358154#M822926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-07T03:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Duplicates and Count Rows?</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358155#M822927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take out those field which are unique combination and then can have sum of flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load distinct Order_id,&lt;/P&gt;&lt;P&gt;ParentLineItemId,&lt;/P&gt;&lt;P&gt;LineItemId,&lt;/P&gt;&lt;P&gt;1 as lineitemidcount&lt;/P&gt;&lt;P&gt;where not isnull(ParentLineItemId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use sum(lineitemidcount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 04:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358155#M822927</guid>
      <dc:creator>balar025</dc:creator>
      <dc:date>2017-08-07T04:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Duplicates and Count Rows?</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358156#M822928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply Neelima.&amp;nbsp; Sorry for the delay in responding back to you.&amp;nbsp; Your solution will definitely give me the count but does not remove the duplicates.&amp;nbsp; As it turns out, the duplicate problem was due to issues with the data itself.&amp;nbsp; I was verifying that and that's why it took me awhile to respond.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 20:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358156#M822928</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2017-08-08T20:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How To Remove Duplicates and Count Rows?</title>
      <link>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358157#M822929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay in replying.&amp;nbsp; As it turns out, there's a problem with the data itself that's causing the duplicates.&amp;nbsp; Your solution did remove some of the duplicate lines (where ParentLineItemId is null) and I suspect if not for the data issues, your solution would remove any others.&amp;nbsp; Thanks for your reply and I'll be marking your answer as the correct answer.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 20:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-To-Remove-Duplicates-and-Count-Rows/m-p/1358157#M822929</guid>
      <dc:creator>pnn44794</dc:creator>
      <dc:date>2017-08-08T20:51:09Z</dc:date>
    </item>
  </channel>
</rss>

