<?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: How to load distinct value? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340232#M412976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From doesn't allow for Order By Statement, beside you don't even need Order By here because you are using Group by and FirstSortedValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But having said that, I would go with &lt;STRONG&gt;Where&lt;/STRONG&gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ProjectCode &amp;lt;&amp;gt; Previous(ProjectCode) &lt;/STRONG&gt;because Group by will give slower performance on a bigger dataset compared to Previous. What might help is if the data is already sorted by &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ProjectCode &lt;/STRONG&gt;and then we won't even need a resident load and my first solution will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2017 14:36:33 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-07-06T14:36:33Z</dc:date>
    <item>
      <title>How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340226#M412970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to load only one row if it has same Project Code. That one row can be randomly picked from multiple rows. Is this something that can be easily done? Thanks. Sample QVW and source file are attached.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/169327_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 13:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340226#M412970</guid>
      <dc:creator>posywang</dc:creator>
      <dc:date>2017-07-06T13:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340227#M412971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DISTINCT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD distinct ProjectCode, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Project, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Portfolio, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DISTINCT.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where ProjectCode &amp;lt;&amp;gt; Previous(ProjectCode);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340227#M412971</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-06T14:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340228#M412972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what row you want to delete&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340228#M412972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-06T14:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340229#M412973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This one is slightly better&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DISTINCT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD distinct ProjectCode, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Project, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Portfolio, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Program&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DISTINCT.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final_DISTINCT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where ProjectCode &amp;lt;&amp;gt; Previous(ProjectCode)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order By ProjectCode;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table DISTINCT;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340229#M412973</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-06T14:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340230#M412974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be&amp;nbsp; try like this not tested&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load distinct * inline [&lt;/P&gt;&lt;P&gt;your data&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340230#M412974</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2017-07-06T14:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340231#M412975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you don't care about which of the other values you get, maybe can you do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DISTINCT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;LOAD distinct ProjectCode,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(Project),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(Portfolio),&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(Program)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;DISTINCT.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(ooxml, embedded labels, table is Sheet1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;GROUP BY ProjectCode&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;ORDER BY ProjectCode&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340231#M412975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-06T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340232#M412976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From doesn't allow for Order By Statement, beside you don't even need Order By here because you are using Group by and FirstSortedValue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But having said that, I would go with &lt;STRONG&gt;Where&lt;/STRONG&gt; &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ProjectCode &amp;lt;&amp;gt; Previous(ProjectCode) &lt;/STRONG&gt;because Group by will give slower performance on a bigger dataset compared to Previous. What might help is if the data is already sorted by &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ProjectCode &lt;/STRONG&gt;and then we won't even need a resident load and my first solution will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340232#M412976</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-06T14:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340233#M412977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached one qvw file. Please have look into it.&lt;/P&gt;&lt;P&gt;Hope this is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this answer helps, then mark it correct so that we can close this call.&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;Regards,&lt;/P&gt;&lt;P&gt;Alkis Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340233#M412977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-06T14:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340234#M412978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am not able to open a qvf file since I only have Qliview. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340234#M412978</guid>
      <dc:creator>posywang</dc:creator>
      <dc:date>2017-07-06T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340235#M412979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alkis Michael !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 15:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1340235#M412979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-06T15:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1575030#M442471</link>
      <description>&lt;P&gt;Wow, while all responses are much appreciated, using a keyword for both a file name and a table name makes this example very hard to follow.&amp;nbsp; In effect you are saying load distinct into distinct from distinct.&amp;nbsp; Wow.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 12:28:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1575030#M442471</guid>
      <dc:creator>Steveo250k</dc:creator>
      <dc:date>2019-04-30T12:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to load distinct value?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1575032#M442472</link>
      <description>&lt;P&gt;While all responses are much appreciated, using a keyword for both a file name and a table name makes this example very hard to follow.&amp;nbsp; In effect you are saying load distinct into distinct from distinct.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 12:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-distinct-value/m-p/1575032#M442472</guid>
      <dc:creator>Steveo250k</dc:creator>
      <dc:date>2019-04-30T12:30:18Z</dc:date>
    </item>
  </channel>
</rss>

