<?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 create dynamic selection list in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853212#M299105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I was a bit tired and didn't study the expression and what it would do much at all ... I just commented on the obvious error in the expression - and being a bit too lazy or quick I didn't even consider the context or implications of using the rest of the expression.... So I think you are the one that is right here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2015 20:50:49 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-05-13T20:50:49Z</dc:date>
    <item>
      <title>How to create dynamic selection list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853205#M299098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked through the forum and didn't find an answer which match with my need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here what i'm trying to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list of store. (store_id)&lt;/P&gt;&lt;P&gt;Each store is doing actions (id_action)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a dynamic selection list.&lt;/P&gt;&lt;P&gt;I want to show in that list only the store with an amount of action &amp;gt; $(my_variable) (or let's say 50 for the exemple)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i'm doing new objet &amp;gt; Selection list.&lt;/P&gt;&lt;P&gt;Then i choose &amp;lt;Expression&amp;gt; in the field list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(count(distinct(id_action))&amp;gt;=50,store_id).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My selection list is empty. Nothing appear inside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help could be usefull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 13:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853205#M299098</guid>
      <dc:creator />
      <dc:date>2015-05-13T13:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic selection list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853206#M299099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use advanced search in a list box together with your dynamic expression to achieve that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on the title of the list box or click the magnifying glass (search icon) and type:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count(DISTINCT id_action) &amp;gt;= 50 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and press enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should now have a selection of only those stores...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to store this search you can even save it as a bookmark (add bookmark) - and specify when adding it that it should be applied on top of current selection. This bookmark will not store the list of the individual store but actually your advanced search which is your expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 19:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853206#M299099</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-13T19:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic selection list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853207#M299100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression:&amp;nbsp;&amp;nbsp; i&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;f(count(distinct(id_action))&amp;gt;=50,store_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shouldn't have ( ) surrounding the id_action. The DISTINCT is just a prefix before the field name which can be used with most aggregation functions like Count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for it to work at least you have to write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If( Count(DISTINCT id_action)&amp;gt;=50 , store_id )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 19:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853207#M299100</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-13T19:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic selection list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853208#M299101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Petter, are you really sure that Count() function can return a value more than 1 ? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;I'd like to offer to use SUM above the Count, like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; sum(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(distinct id_action))&amp;gt;49,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; store_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Oleg&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 19:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853208#M299101</guid>
      <dc:creator>oleg_datsenko</dc:creator>
      <dc:date>2015-05-13T19:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic selection list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853209#M299102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not at all - I just corrected an obvious error in his expression ... in a hurry ... I think that my first post is probably what I would have wanted to implement...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 20:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853209#M299102</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-13T20:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic selection list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853210#M299103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I would suggest the following expression as List box Expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(Only({&amp;lt;store_id={"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count(DISTINCT id_action)&amp;gt;50"}&amp;gt;} store_id),store_id)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 20:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853210#M299103</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-05-13T20:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic selection list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853211#M299104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't worry. Actually I'm not sure about returning only 1 value &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Maybe you are right. And using SUM is not necessary. A bit tired...and can make a mistake.. sorry&lt;/P&gt;&lt;P&gt;BTW&lt;/P&gt;&lt;P&gt;I think that count(id_action) will return the same as count(distinct id_action) in this case. ID is something distinct "by default" in most cases )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 20:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853211#M299104</guid>
      <dc:creator>oleg_datsenko</dc:creator>
      <dc:date>2015-05-13T20:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create dynamic selection list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853212#M299105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well I was a bit tired and didn't study the expression and what it would do much at all ... I just commented on the obvious error in the expression - and being a bit too lazy or quick I didn't even consider the context or implications of using the rest of the expression.... So I think you are the one that is right here &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 20:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-dynamic-selection-list/m-p/853212#M299105</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-13T20:50:49Z</dc:date>
    </item>
  </channel>
</rss>

