<?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 Restrict List Box selection to two items in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556589#M1131878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box that has three items. I have a chart that runs a compare on any two of the three items,. I have a couple of questions please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How can I set up the llist box such that the user must&amp;nbsp; two of the items, otherwise no chart is displayed?&lt;/P&gt;&lt;P&gt;2. How can I set up the chart so that it displays depending on the two items selected? I have the three items set up as variables but can't work out hoe to get them to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated.&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;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Nov 2013 00:21:54 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-21T00:21:54Z</dc:date>
    <item>
      <title>Restrict List Box selection to two items</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556589#M1131878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a list box that has three items. I have a chart that runs a compare on any two of the three items,. I have a couple of questions please:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. How can I set up the llist box such that the user must&amp;nbsp; two of the items, otherwise no chart is displayed?&lt;/P&gt;&lt;P&gt;2. How can I set up the chart so that it displays depending on the two items selected? I have the three items set up as variables but can't work out hoe to get them to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help appreciated.&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;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 00:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556589#M1131878</guid>
      <dc:creator />
      <dc:date>2013-11-21T00:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict List Box selection to two items</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556590#M1131882</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;try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Getselectedcount(fieldname) = 2&lt;BR /&gt;in general properties -&amp;gt; calculation condition &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 00:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556590#M1131882</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-11-21T00:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict List Box selection to two items</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556591#M1131884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if we have an option to restrict the no of selections. But we can use hide using condition like sample in attachment to present the functionality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 00:59:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556591#M1131884</guid>
      <dc:creator />
      <dc:date>2013-11-21T00:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict List Box selection to two items</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556592#M1131886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In chart general tab under calculation condition&lt;/P&gt;&lt;P&gt;write the name of field used in list box &lt;/P&gt;&lt;P&gt;i.e count(Distinct Fieldname)=2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and below click on&amp;nbsp; error message&lt;/P&gt;&lt;P&gt;and in calulation condition unfulfilled write &lt;/P&gt;&lt;P&gt;Please Select atleast Two Fieldname to view the Report&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 04:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556592#M1131886</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-11-21T04:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict List Box selection to two items</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556593#M1131887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go To General Tab,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under General Tab Go To Calculation Condition use this Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=GetSelectedCount(ListBoxFieldName) = 2&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;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 05:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556593#M1131887</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2013-11-21T05:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict List Box selection to two items</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556594#M1131888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the below one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Chart -&amp;gt; Properties-&amp;gt;General-&amp;gt;Calculated Condition&lt;/P&gt;&lt;P&gt;" =Getselectedcount("FieldName")=2 " &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then provide a Error message in the below place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Chart -&amp;gt; Properties-&amp;gt;General-&amp;gt;Error Messages&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Custom:&lt;/P&gt;&lt;P&gt; Please select any 2 values of "FieldName" to see the comparision analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:-&lt;/STRONG&gt; "FieldName" refers the Field used in the List box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Vinoth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 06:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556594#M1131888</guid>
      <dc:creator>vinothkumarr</dc:creator>
      <dc:date>2013-11-21T06:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict List Box selection to two items</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556595#M1131889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;PFA. Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 06:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556595#M1131889</guid>
      <dc:creator />
      <dc:date>2013-11-21T06:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict List Box selection to two items</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556596#M1131890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 06:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556596#M1131890</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2013-11-21T06:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict List Box selection to two items</title>
      <link>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556597#M1131891</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;Thanks for all the great answers... It worked:). I have a follow on question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart with two axes, I want one to display data based on the first selection in the list box and the second axis to display based on the second list box item selected. I'm using the GetFieldSelections &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"ForecastVersion"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;nbsp; function but can't work out how to incorporate that into my expression. The expression I have i shown below, where the variable is what I currently have set to generate one axis on the chart. I would like to replace the variable with the List box selection. Given that I have two asex, I would need to be able to assign each selection to a seperate chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;Measure&lt;/SPAN&gt;={'Total Sales'}, &lt;SPAN style="color: #800000;"&gt;ForecastVersion&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(vLast_Forecast)&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Data&lt;/SPAN&gt;)&lt;STRONG style=": ; color: #ff8000; text-decoration: underline;"&gt;) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;All help gratefully appreciated.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;John&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 15:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Restrict-List-Box-selection-to-two-items/m-p/556597#M1131891</guid>
      <dc:creator />
      <dc:date>2013-11-21T15:01:13Z</dc:date>
    </item>
  </channel>
</rss>

