<?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: loading a field with distinct values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loading-a-field-with-distinct-values/m-p/931322#M321954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A faster alternatively would be to query the field which is always distinct instead the whole table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD dual(FieldValue('Brands', recno()), FieldValue('Brands', recno())) as Brands2 &lt;/P&gt;&lt;P&gt;AUTOGENERATE FieldValueCount('Brands');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By 1000 records it's not important but if you have millions of records you will notice the differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Aug 2015 16:16:25 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-08-15T16:16:25Z</dc:date>
    <item>
      <title>loading a field with distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/loading-a-field-with-distinct-values/m-p/931319#M321951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've got a big data tableX which has among others a field 'Brands'. There are actually 10 distinct values in the field 'Brand'. But the number&amp;nbsp; of rows in the table is 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My task is to load a separate tableY with the field 'Brands2' form the resident &lt;SPAN style="font-size: 13.3333330154419px;"&gt;tableX so that ONLY distinct values could be included in the field &lt;SPAN style="font-size: 13.3333330154419px;"&gt;'Brands2'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script is as follows:&lt;/P&gt;&lt;P&gt;tableY:&lt;/P&gt;&lt;P&gt;load Brands as Brands2&lt;/P&gt;&lt;P&gt;resident &lt;SPAN style="font-size: 13.3333330154419px;"&gt;tableX;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script must be wrong because when I check the number of the values in the filed 'Brands' on the forefront it indicates 1000. But it must be 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I load only distinct values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 15:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-a-field-with-distinct-values/m-p/931319#M321951</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-15T15:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: loading a field with distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/loading-a-field-with-distinct-values/m-p/931320#M321952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;tableY:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load DISTINCT&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Brands as Brands2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;resident &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;tableX;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;And the check in table viewer how many rows it loaded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Rgds&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 15:45:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-a-field-with-distinct-values/m-p/931320#M321952</guid>
      <dc:creator>maximiliano_vel</dc:creator>
      <dc:date>2015-08-15T15:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: loading a field with distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/loading-a-field-with-distinct-values/m-p/931321#M321953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 16:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-a-field-with-distinct-values/m-p/931321#M321953</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-15T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: loading a field with distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/loading-a-field-with-distinct-values/m-p/931322#M321954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A faster alternatively would be to query the field which is always distinct instead the whole table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD dual(FieldValue('Brands', recno()), FieldValue('Brands', recno())) as Brands2 &lt;/P&gt;&lt;P&gt;AUTOGENERATE FieldValueCount('Brands');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By 1000 records it's not important but if you have millions of records you will notice the differences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 16:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-a-field-with-distinct-values/m-p/931322#M321954</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-08-15T16:16:25Z</dc:date>
    </item>
  </channel>
</rss>

