<?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 Load Distinct in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28133#M791283</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;I'm having problems loading data into QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of my data is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Score&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;John Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;JS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jack Small&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;JS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Paul Knowles&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PK&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Gemma Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;GS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do a distinct load but when I count the number of records it is doubling where there is two of the same ID's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've no idea why and I can't fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone seen this before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/96544" target="_blank"&gt;gwassenaar&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/4003" target="_blank"&gt;hic&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/4484" target="_blank"&gt;stevedark&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2286" target="_blank"&gt;rwunderlich&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2006" target="_blank"&gt;jimhalpert&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2008" target="_blank"&gt;afd&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2009" target="_blank"&gt;erika&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Load Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28133#M791283</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;I'm having problems loading data into QV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of my data is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Score&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;John Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;JS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Jack Small&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;JS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Paul Knowles&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PK&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Gemma Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;GS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do a distinct load but when I count the number of records it is doubling where there is two of the same ID's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've no idea why and I can't fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone seen this before?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/96544" target="_blank"&gt;gwassenaar&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/4003" target="_blank"&gt;hic&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/4484" target="_blank"&gt;stevedark&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2286" target="_blank"&gt;rwunderlich&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2006" target="_blank"&gt;jimhalpert&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2008" target="_blank"&gt;afd&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/2009" target="_blank"&gt;erika&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28133#M791283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28134#M791284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you doing a join on ID field later on in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:46:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28134#M791284</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-31T13:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Load Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28135#M791285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Sunny, but I've commented out that part of the script and re run it and still get the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The count should be 4 but I'm getting 6 as it is double counting on ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 13:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28135#M791285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-31T13:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28136#M791286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 14:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28136#M791286</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-31T14:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Load Distinct</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28137#M791287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gareth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rows are not distinct.&amp;nbsp; For a distinct to remove a row all values must be identical - including the numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you may want is a group by in the load script, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; CONCAT(DISTINCT Name, ', ') as Names,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SUM(Score) as Score&lt;/P&gt;&lt;P&gt;FROM YourDataSource.qvd (qvd)&lt;/P&gt;&lt;P&gt;GROUP BY ID&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in QlikView (and Sense) you don't need to do this.&amp;nbsp; Simply load the table without doing a distinct and then create a table with ID as a dimension and Sum(Score) as the expression and you will get three rows with a Score of 19 for the ID JS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the data though... it looks like the two JS IDs are actually two different individuals, so probably should be reported separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe I'm missing the point, and what you need to do is simply replace a &lt;STRONG&gt;COUNT(ID) &lt;/STRONG&gt;statement with &lt;STRONG&gt;COUNT(DISTINCT ID) &lt;/STRONG&gt;in the front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 23:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Distinct/m-p/28137#M791287</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2018-01-31T23:32:11Z</dc:date>
    </item>
  </channel>
</rss>

