<?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: search a value in a Multiple selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868719#M303812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use substringcount inside of a concat &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(SubStringCount(Concat('||' &amp;amp; 'Month, '||'), '||March||')&amp;nbsp; &amp;gt;0 and GetSelectedCount(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Month&lt;/SPAN&gt;) &amp;gt; 0, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Apr 2015 21:32:59 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-04-20T21:32:59Z</dc:date>
    <item>
      <title>search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868715#M303808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a problem with qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calendar &lt;SPAN class="hps"&gt; that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I can&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;select multiple&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;values for&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;month. I need &lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;to know&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;if&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;when&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;I have selected&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;several months&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;March&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;selected.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;For example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;If ('March' IN selected-months, then condition)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;I tried with Match function but this only works if you select only one month.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Any ideas?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 15:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868715#M303808</guid>
      <dc:creator />
      <dc:date>2015-04-20T15:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868716#M303809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to use Subfield function when you have multiple months. But the exact expression which can be used can only be determine once you share a sample data or application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 17:00:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868716#M303809</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-20T17:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868717#M303810</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;In expression:&lt;/P&gt;&lt;P&gt;=If(WildMatch(GetFieldSelections(Month), '*March*'), 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flow control in script:&lt;/P&gt;&lt;P&gt;If WildMatch(GetFieldSelections(Month), '*March*') Then&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>Mon, 20 Apr 2015 17:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868717#M303810</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-04-20T17:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868718#M303811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan, it is not a script function...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 18:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868718#M303811</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-20T18:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868719#M303812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use substringcount inside of a concat &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(SubStringCount(Concat('||' &amp;amp; 'Month, '||'), '||March||')&amp;nbsp; &amp;gt;0 and GetSelectedCount(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Month&lt;/SPAN&gt;) &amp;gt; 0, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 21:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868719#M303812</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-20T21:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868720#M303813</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;/P&gt;&lt;P&gt;if(SubStringCount(getfieldselections(urmonthfield),'March')&amp;gt;0, then condition)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 23:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868720#M303813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-20T23:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868721#M303814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;considering you would want to do it in the front-end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 23:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868721#M303814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-20T23:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868722#M303815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all, I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;substringcount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Mes&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'mar') &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;And it´s works perfectly&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 08:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868722#M303815</guid>
      <dc:creator />
      <dc:date>2015-04-21T08:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868723#M303816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If (Index(GetFieldSelections(MonthField), 'March'), 'Present','Not')&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;&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;Or&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If (GetFieldSelections(MonthField) Like '*March*', 'Present','Not')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 08:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868723#M303816</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-04-21T08:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868724#M303817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a difference between using concat() and GetFieldSelections().&amp;nbsp; If you use concat(), it would react on all &lt;STRONG&gt;available&lt;/STRONG&gt; values, not just &lt;STRONG&gt;selected&lt;/STRONG&gt; values - which is not the same.&amp;nbsp; Your request was about the selected values, so concat() is not the right function for this requirement.&amp;nbsp; Well, if it works for you - you know better what's really required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, the correct answers was given by Jonathan (if use GetFfieldSelections) and by Ramon (if use concat).&amp;nbsp; They deserve at least "helpful" points.&amp;nbsp; Marking your own answer as correct is fine of course, especially if there were no other good answers, but it doesn't add you points anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 11:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868724#M303817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-21T11:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: search a value in a Multiple selection</title>
      <link>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868725#M303818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael is right concat and getfieldselections are similar but no the same, the reason I prefer to use concat over getselections is because I can massage the values to the format want, so if I am looking for a result called Inventory, but in my selections I have Inventory and Warehouse inventory I can still separate them&lt;/P&gt;&lt;P&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;"and GetSelectedCount(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;) &amp;gt; 0" this part of the expression makes sure that this only works when this field is selected, otherwise the concat will bring you all the values&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 14:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/search-a-value-in-a-Multiple-selection/m-p/868725#M303818</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-21T14:23:59Z</dc:date>
    </item>
  </channel>
</rss>

