<?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 How to limit possible selections on a List in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363371#M575050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; You are probably displaying some charts based on the user's selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart you have 'Calculation condition' property on General tab. You can put a condition there like "count(distinct Year) = 2". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then press 'Error messages' button on the same tab in the chart properties and add some user friendly error message for the 'Calculation condition unfulfilled'. Something like "Please select two years only".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2012 14:05:53 GMT</pubDate>
    <dc:creator>masha-ecraft</dc:creator>
    <dc:date>2012-05-22T14:05:53Z</dc:date>
    <item>
      <title>How to limit possible selections on a List</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363370#M575049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list who contains 5 elements (2008, 2009, 2010, 2011 and 2012) I'd like to limit the user to select only 2 of them of each time, as (2008, 2009) or (2009, 2011). Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's not possible, there's a way to get only the 2 majors selected? If the user selects (2008, 2009, 2011) I'd like to get (2009, 2011), this is possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 13:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363370#M575049</guid>
      <dc:creator />
      <dc:date>2012-05-22T13:58:01Z</dc:date>
    </item>
    <item>
      <title>How to limit possible selections on a List</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363371#M575050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; You are probably displaying some charts based on the user's selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart you have 'Calculation condition' property on General tab. You can put a condition there like "count(distinct Year) = 2". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then press 'Error messages' button on the same tab in the chart properties and add some user friendly error message for the 'Calculation condition unfulfilled'. Something like "Please select two years only".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 14:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363371#M575050</guid>
      <dc:creator>masha-ecraft</dc:creator>
      <dc:date>2012-05-22T14:05:53Z</dc:date>
    </item>
    <item>
      <title>How to limit possible selections on a List</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363372#M575051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Masha, thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there's a way to get only the 2 majors selected? If the user selects (2008, 2009, 2011) can I get (2009, 2011)? This is possible?&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;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 14:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363372#M575051</guid>
      <dc:creator />
      <dc:date>2012-05-22T14:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit possible selections on a List</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363373#M575052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a field event trigger (settings -&amp;gt; document properties -&amp;gt; triggers) and then create an OnSelect action for that field e.g. Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select as action type Selection -&amp;gt; Select in Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then enter your field name in the field entry box&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Year&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(no equal sign, just the field name), and as search expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if(GetSelectedCount(Year)&amp;gt;2,'('&amp;amp;max(Year)&amp;amp;'|'&amp;amp;max(Year,2)&amp;amp;')', if(GetSelectedCount(Year)&amp;gt;0,'=Year',NULL()) )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 15:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363373#M575052</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-22T15:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit possible selections on a List</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363374#M575053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works perfectly, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 17:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-limit-possible-selections-on-a-List/m-p/363374#M575053</guid>
      <dc:creator />
      <dc:date>2012-05-22T17:11:42Z</dc:date>
    </item>
  </channel>
</rss>

