<?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: Set variables based on check box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-variables-based-on-check-box/m-p/1095121#M363852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if the attached helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117028_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/117032_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;=If(SubStringCount(GetFieldSelections(CheckBox), 'Some_Text1') = 1, 'Hi World')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;=If(SubStringCount(GetFieldSelections(CheckBox), 'Some_Text2') = 1, 'Bye World')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 20:19:38 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-04T20:19:38Z</dc:date>
    <item>
      <title>Set variables based on check box</title>
      <link>https://community.qlik.com/t5/QlikView/Set-variables-based-on-check-box/m-p/1095120#M363851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a listbox with 2 values which I have set up as a check box. Is it possible to set the value of a variable based on whether or not a line in the check box is checked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, when the first line is checked off, I want variable 1 to take some value, and when the second line is checked off I want variable 2 to take a separate value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've messed around with GetCurrentSelections, Match, and Concat but am not having any luck. A sample qvw file is attached.&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;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 19:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-variables-based-on-check-box/m-p/1095120#M363851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-04T19:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set variables based on check box</title>
      <link>https://community.qlik.com/t5/QlikView/Set-variables-based-on-check-box/m-p/1095121#M363852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if the attached helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117028_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/117032_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variables&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;=If(SubStringCount(GetFieldSelections(CheckBox), 'Some_Text1') = 1, 'Hi World')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;=If(SubStringCount(GetFieldSelections(CheckBox), 'Some_Text2') = 1, 'Bye World')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 20:19:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-variables-based-on-check-box/m-p/1095121#M363852</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-04T20:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set variables based on check box</title>
      <link>https://community.qlik.com/t5/QlikView/Set-variables-based-on-check-box/m-p/1095122#M363853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect. That seems to be exactly what I am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 20:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-variables-based-on-check-box/m-p/1095122#M363853</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-04T20:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set variables based on check box</title>
      <link>https://community.qlik.com/t5/QlikView/Set-variables-based-on-check-box/m-p/1095123#M363854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 20:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-variables-based-on-check-box/m-p/1095123#M363854</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-04T20:45:57Z</dc:date>
    </item>
  </channel>
</rss>

