<?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: Setting variables based on Field selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796074#M1030406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vA= substringcount( getfieldselectionst(Filter),'A')&lt;/P&gt;&lt;P&gt;the other variables according&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 15:09:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-12T15:09:52Z</dc:date>
    <item>
      <title>Setting variables based on Field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796071#M1030403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field as follows:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid #000000; width: 59px; height: 116px;" width="57"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Filter&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;E&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I have 5 variables as:&lt;/P&gt;&lt;P&gt;vA, vB, vC, vD, vE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to set these variables to true/false based on the selection of values in field. For example, if A and C are selected in field 'Filter', the variables vA and vC should be set to true and others should remain false.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how it can be achieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 14:59:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796071#M1030403</guid>
      <dc:creator />
      <dc:date>2015-02-12T14:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Setting variables based on Field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796072#M1030404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vA: =(max(match(Filter,'A')) and GetSelectedCount(Filter))&lt;/P&gt;&lt;P&gt;vB: =(max(match(Filter,'B')) and GetSelectedCount(Filter))&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796072#M1030404</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-02-12T15:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Setting variables based on Field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796073#M1030405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishat, you can create the 5 variables and add a trigger for OnSelect and/or OnChange for the Filter field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this trigger has 5 'set variable' actions, one for each variable, lokking if Filter contains the value and set 1 or 0, accordly&lt;/P&gt;&lt;P&gt;ie:&lt;/P&gt;&lt;P&gt;Variable: vA&lt;/P&gt;&lt;P&gt;Value: =If(Index(Concat(Filter), 'A'), 1, 0) &amp;lt;-- Stores 1 if 'A' is included in the possible values for filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take care if some values of filter are substrings of others, if this happens you'll need to add something more to identify each value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796073#M1030405</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-02-12T15:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Setting variables based on Field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796074#M1030406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vA= substringcount( getfieldselectionst(Filter),'A')&lt;/P&gt;&lt;P&gt;the other variables according&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 15:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796074#M1030406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-12T15:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Setting variables based on Field selection</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796075#M1030407</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;Similarly is there anyway to set a variable vSingleTypeSelected to 1 when a distinct value in the Type field is clicked?&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;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 15:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-variables-based-on-Field-selection/m-p/796075#M1030407</guid>
      <dc:creator />
      <dc:date>2015-06-26T15:32:32Z</dc:date>
    </item>
  </channel>
</rss>

