<?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 can I check for duplicate records? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-can-I-check-for-duplicate-records/m-p/242219#M92550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vawarali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes you get duplicate sets of fields in the table but with different primary keys. I would personally write something in the script, as this is much more efficient but if I am doing this in the QVW I would use a chart object rather than a table box to display the number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use all the fields that you are interested in looking for as duplicates as the dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the expression will be = count(key_field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or whatever the primary key is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then either sort by the expression field, or set the expression to something like&amp;nbsp; = count(key_field)&amp;gt;1 to list only the duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Dec 2011 10:23:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-12-31T10:23:09Z</dc:date>
    <item>
      <title>How can I check for duplicate records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-for-duplicate-records/m-p/242217#M92548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've fetched the result of a SQL in a table-box. I want to check if there are any duplicate records. How can I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 10:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-for-duplicate-records/m-p/242217#M92548</guid>
      <dc:creator />
      <dc:date>2011-12-30T10:31:10Z</dc:date>
    </item>
    <item>
      <title>How can I check for duplicate records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-for-duplicate-records/m-p/242218#M92549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after load table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take primary key into list box &lt;/P&gt;&lt;P&gt;go to list box properties-&amp;gt; Frequency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it showing more than 1 then duplicates is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2011 10:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-for-duplicate-records/m-p/242218#M92549</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-12-30T10:33:05Z</dc:date>
    </item>
    <item>
      <title>How can I check for duplicate records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-for-duplicate-records/m-p/242219#M92550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vawarali,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes you get duplicate sets of fields in the table but with different primary keys. I would personally write something in the script, as this is much more efficient but if I am doing this in the QVW I would use a chart object rather than a table box to display the number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use all the fields that you are interested in looking for as duplicates as the dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the expression will be = count(key_field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or whatever the primary key is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then either sort by the expression field, or set the expression to something like&amp;nbsp; = count(key_field)&amp;gt;1 to list only the duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Dec 2011 10:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-for-duplicate-records/m-p/242219#M92550</guid>
      <dc:creator />
      <dc:date>2011-12-31T10:23:09Z</dc:date>
    </item>
    <item>
      <title>How can I check for duplicate records?</title>
      <link>https://community.qlik.com/t5/QlikView/How-can-I-check-for-duplicate-records/m-p/242220#M92551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding further to above count(Key_field) expression gives the total count and count(DISTINCT key_field) gives the distinct count.. try this in any list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Dec 2011 11:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-can-I-check-for-duplicate-records/m-p/242220#M92551</guid>
      <dc:creator />
      <dc:date>2011-12-31T11:03:53Z</dc:date>
    </item>
  </channel>
</rss>

