<?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: match values within a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216495#M389569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for the responses!&amp;nbsp; I only needed it to be based on a single selection and it's working without the max and aggr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 20:59:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-15T20:59:52Z</dc:date>
    <item>
      <title>match values within a variable</title>
      <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216488#M389562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering how I can place multiple text values within a variable and, if a selected dimension value matches one of the values in the variable, activate a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable contains comma separated values and I'm trying to say that when a selected value in a dimension = a value in the variable, show 1, 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if(match(Getfieldselections(Dimension),Variable),1,0)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;My variable is set like this in the script:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Set Variable = 'Text1','Text2','Text3';&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 19:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216488#M389562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-15T19:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: match values within a variable</title>
      <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216489#M389563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Aggr(If(SubStringCount(Variable, Dimension) &amp;gt;= 1, 1, 0), Dimension))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 19:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216489#M389563</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T19:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: match values within a variable</title>
      <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216490#M389564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 19:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216490#M389564</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T19:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: match values within a variable</title>
      <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216491#M389565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this if the button should be hidden when not selection in Dimension is made&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Max(Aggr(If(SubStringCount(Variable, Dimension) &amp;gt;= 1, 1, 0), Dimension)) and GetSelectedCount(Dimension) &amp;gt; 0&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 19:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216491#M389565</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T19:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: match values within a variable</title>
      <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216492#M389566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, why we need Max(Aggr()) cant we just use &lt;/P&gt;&lt;P&gt;like in layout conditional&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= vVar = &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(SubStringCount(Variable, Dimension) &amp;gt;= 1, 1, 0)&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 19:56:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216492#M389566</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-03-15T19:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: match values within a variable</title>
      <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216493#M389567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this need to work only based on a single selection, then without Max and Aggr() will work... but in case we need this to work based on multiple selection, then without Max and Aggr() it will not work....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 20:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216493#M389567</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-15T20:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: match values within a variable</title>
      <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216494#M389568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, Got it. Thanks for that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 20:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216494#M389568</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-03-15T20:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: match values within a variable</title>
      <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216495#M389569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for the responses!&amp;nbsp; I only needed it to be based on a single selection and it's working without the max and aggr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 20:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216495#M389569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-15T20:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: match values within a variable</title>
      <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216496#M389570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, by mistake you have made my response as correct. I did not give that solution, i got that from Sunny. I have just asked that question to him. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 21:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216496#M389570</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-03-15T21:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: match values within a variable</title>
      <link>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216497#M389571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No harm, Even though you use them, it still works...So, i feel i should not be credited for this as i just copied from his expr.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 21:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/match-values-within-a-variable/m-p/1216497#M389571</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-03-15T21:16:23Z</dc:date>
    </item>
  </channel>
</rss>

