<?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: Check multiple selection in a list box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775222#M1030670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this example&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={'2005','2006'}&amp;gt;}field)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 09:00:06 GMT</pubDate>
    <dc:creator>arulsettu</dc:creator>
    <dc:date>2015-02-10T09:00:06Z</dc:date>
    <item>
      <title>Check multiple selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775221#M1030669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a year list box which shows 2001, 2002, ... 2015. In a chart, I want to control the display by the selection in this year filters. e.g. A chart is shown only when users select certain years.&lt;/P&gt;&lt;P&gt;I can do this for single year by putting this expression in "Conditional" field of Expressions tab in a chart:&lt;/P&gt;&lt;P&gt;if(Year='2005', 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I want to display a chart only when user select TWO or more years, (e.g., select 2005 AND 2006), the function doesn't work:&lt;/P&gt;&lt;P&gt;if(Year='2005' and Year='2006', 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make this work? Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 08:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775221#M1030669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-10T08:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Check multiple selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775222#M1030670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try this example&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={'2005','2006'}&amp;gt;}field)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:00:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775222#M1030670</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-02-10T09:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Check multiple selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775223#M1030671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GetPossibleCount(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;GetSelectedCount(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;if(match(Concat(DISTINCT &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year&lt;/SPAN&gt;, '-', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Year&lt;/SPAN&gt;), '2013-2014'),1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775223#M1030671</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-10T09:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Check multiple selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775224#M1030672</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;you need:&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;if(Year='2005' Or Year='2006', 1, 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775224#M1030672</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-02-10T09:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Check multiple selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775225#M1030673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't add it to your expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;A chart is shown only when users select certain years&lt;/SPAN&gt;"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add to your chart properties in Layout - Show: getselectedcount(year) &amp;gt; 1 (or getselected count &amp;gt;= 2 &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775225#M1030673</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2015-02-10T09:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Check multiple selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775226#M1030674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi in your chart's properties select Layout then Show -&amp;gt; Conditional. Enter the following code. The chart will only be displayed when more than 2 years are selected by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(GetSelectedCount(Year)&amp;gt;2,1,0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775226#M1030674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-10T09:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Check multiple selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775227#M1030675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but some of my selections are "AND" case, e.g. "2005" AND "2010".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:25:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775227#M1030675</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-10T09:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Check multiple selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775228#M1030676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The match looks like the one I need. Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775228#M1030676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-10T09:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Check multiple selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775229#M1030677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is also helpful, but sometimes I need to check whether the users have chosen the exact years I need, but this function can only check how many years have been chosen. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775229#M1030677</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-10T09:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Check multiple selection in a list box</title>
      <link>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775230#M1030678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need this solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({year = {'$(=GetFieldSelections(year))'}&amp;gt;} &amp;lt;your measure&amp;gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 09:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-multiple-selection-in-a-list-box/m-p/775230#M1030678</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2015-02-10T09:57:02Z</dc:date>
    </item>
  </channel>
</rss>

