<?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: Fast retrieve of distinct values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835355#M659444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then use alternate states if you want to have "in a different dataset"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 09:12:10 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2015-04-15T09:12:10Z</dc:date>
    <item>
      <title>Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835348#M659437</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 throwing this one out there for discussion. I have a feeling that I've seen it discussed before, but can't find the thread!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regularly I will have a large table that I will then need to retrieve distinct values of dimensional fields from in order to display in selection boxes etc. This obviously impacts the load significantly as it has to load the full table each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on ways to improve this process? (Flags, group by's etc.)&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;ps. As pointed out below - the reason for doing this is that I need a separate table that is not linked to the main table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 08:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835348#M659437</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2015-04-15T08:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835349#M659438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The list box actually displays distinct values of any column, so why do you have to load distinct values ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 08:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835349#M659438</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2015-04-15T08:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835350#M659439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A List Box shows the values distinct by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you probably already knew that, my guess is your actual problem is a bit different. Please explain your actual problem / challenge.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 08:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835350#M659439</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-04-15T08:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835351#M659440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need it to be an independent dataset (ie. not linked to the 'main' table)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 08:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835351#M659440</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2015-04-15T08:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835352#M659441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SomeIndependentTable:&lt;/P&gt;&lt;P&gt;LOAD DISTINCT&lt;/P&gt;&lt;P&gt;SomeFieldName&lt;/P&gt;&lt;P&gt;RESIDENT OriginalTable;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 08:42:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835352#M659441</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-04-15T08:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835353#M659442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks OvK, that's the technique that I've been using but was hoping for any better performing alternatives...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 08:45:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835353#M659442</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2015-04-15T08:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835354#M659443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its an interesting topic, and I have a similar issue. It does seem strange that a load from a large table is slow even when the resulting data is minimal. I hope there will be some further comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 08:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835354#M659443</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-04-15T08:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835355#M659444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then use alternate states if you want to have "in a different dataset"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835355#M659444</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2015-04-15T09:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835356#M659445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that straightforward I'm afraid... I need to, for example, have date selections to apply to the start of a waterfall chart and the end of the same waterfall chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:16:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835356#M659445</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2015-04-15T09:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835357#M659446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then use Claendar control and link them to 2 variables then you expression will have in the where condition somthing like this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={"&amp;gt;=$(fromDate) &amp;lt;=$(ToDate)"}&amp;gt;} Metric)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835357#M659446</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2015-04-15T09:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835358#M659447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Coming back to your original request, to retrieve the distinct values of an already loaded (resident) table, try something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DistinctValuesTable:&lt;/P&gt;&lt;P&gt;LOAD fieldvalue('FIELD',iterno()) as DistinctFieldValues&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1&lt;/P&gt;&lt;P&gt;WHILE len(fieldvalue('FIELD',iterno()));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:26:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835358#M659447</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-04-15T09:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835359#M659448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry AH, but you're trying to answer a particular situation rather than my actual question. Just take it as a given that I need to do a fast filter of one table into a separate table of distinct values... for whatever reason. And that is what I was interested in discussing...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:28:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835359#M659448</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2015-04-15T09:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835360#M659449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use alternate states and get the selected values using concat({your_desire_state} distinct your_column,',')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835360#M659449</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2015-04-15T09:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fast retrieve of distinct values</title>
      <link>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835361#M659450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl, I've seen this in relation to building a calendar and it was very effective. Will give it a go and report back!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it can only work for one field in the table, rather than multiple fields...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 09:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fast-retrieve-of-distinct-values/m-p/835361#M659450</guid>
      <dc:creator>juleshartley</dc:creator>
      <dc:date>2015-04-15T09:44:58Z</dc:date>
    </item>
  </channel>
</rss>

