<?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: Determine if a value is currently selected? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/2467962#M1225889</link>
    <description>&lt;P&gt;I use this solution in my app:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;wildmatch('#' &amp;amp; GetFieldSelections([Field], '#') &amp;amp; '#','*#Topic#*')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="simple-translate" class="simple-translate-system-theme"&gt;
&lt;DIV&gt;
&lt;DIV class="simple-translate-button isShow" style="background-image: url('chrome-extension://ibplnjkanclpjokhdolnendpplpjiace/icons/512.png'); height: 22px; width: 22px; top: 80px; left: 583px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-panel " style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px;"&gt;
&lt;DIV class="simple-translate-result-wrapper" style="overflow: hidden;"&gt;
&lt;DIV class="simple-translate-move" draggable="true"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-result-contents"&gt;
&lt;P class="simple-translate-result"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="simple-translate-candidate"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 04 Jul 2024 09:35:31 GMT</pubDate>
    <dc:creator>piter89</dc:creator>
    <dc:date>2024-07-04T09:35:31Z</dc:date>
    <item>
      <title>Determine if a value is currently selected?</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333168#M122778</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;I am trying&amp;nbsp; to determine if a month is currently selected.&amp;nbsp; I am breaking an example down as much as possible to the point where the problem is.&amp;nbsp; See the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;match('ValueInQuestion',getFieldSelections(SampleField))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select ValueInQuestion as the only selection in the field SampleField, this function returns 1 as I would expect. However, if I select two values in the field SampleField, then I get 0 even if 'ValueInQuestion' is also selected.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the proper way to do this?&amp;nbsp; More relevant to my situation, I am trying to determine if a certain month is selected, such that I can do match('Apr',getFieldSelections(Month)) and have that return some number that is &amp;gt; 0 when I have a bunch of months selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 20:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333168#M122778</guid>
      <dc:creator>scotthan</dc:creator>
      <dc:date>2012-04-02T20:28:17Z</dc:date>
    </item>
    <item>
      <title>Determine if a value is currently selected?</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333169#M122779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=wildmatch(GetFieldSelections(FieldName),'*ValueInQuestion,*')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that the GetFieldSelections() functions will only show a certain amount of values in clear text (use the third parameter to increase the number).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I think there might be a more simple approach, too, but just can't get it right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 20:41:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333169#M122779</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-04-02T20:41:21Z</dc:date>
    </item>
    <item>
      <title>Determine if a value is currently selected?</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333170#M122780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks so much, I never thought to put the GetFieldSelections as the first parameter. Very creative!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My final expression is wildmatch(getFieldSelections(Month,','),'*'&amp;amp;Month(today())&amp;amp;'*')&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 20:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333170#M122780</guid>
      <dc:creator>scotthan</dc:creator>
      <dc:date>2012-04-02T20:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a value is currently selected?</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333171#M122781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if there could be two values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I this example I am creating a field picker fro a report so I display a list of fields created by an inline table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I build out the straight table chart and conditionally enable/disable the fields with an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Topic&lt;/P&gt;&lt;P&gt;Sub Topic&lt;/P&gt;&lt;P&gt;Client Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check if Topic is selected but with your example if Sub Topic is selected it will also return a 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried things like &lt;/P&gt;&lt;P&gt;=index(GetFieldSelections(%Fieldz2,'|',100),'Topic')&lt;/P&gt;&lt;P&gt;=wildmatch(GetFieldSelections(%Fieldz2,';',2000),'*Topic*')&lt;/P&gt;&lt;P&gt;=index(GetFieldSelections(%Fieldz2,'|',1000),'Topic')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far the only thing I have working is ugly and that's to change it from Topic to Topic_ that therefore has a unique string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 00:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333171#M122781</guid>
      <dc:creator>dgreenberg</dc:creator>
      <dc:date>2017-11-14T00:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a value is currently selected?</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333172#M122782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Far to often as soon as I type out a question I come up with the answer but still thankful the forum helps me do that.&lt;/P&gt;&lt;P&gt;This is how I resolved it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of&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;=wildmatch(GetFieldSelections(%Fieldz2,';',2000),'*Topic*')&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;I used&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;=wildmatch(GetFieldSelections(%Fieldz2,';',2000),'*&lt;STRONG style="text-decoration: underline;"&gt;;&lt;/STRONG&gt;Topic;*') including the delineater &lt;STRONG&gt;; &lt;/STRONG&gt;before and after now only Topic returns a 1 Topic Group and Sub Topic do not.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 00:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333172#M122782</guid>
      <dc:creator>dgreenberg</dc:creator>
      <dc:date>2017-11-14T00:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a value is currently selected?</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333173#M122783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I tweaked it some more as if it were the first or last value in the string it may not match.&lt;/P&gt;&lt;P&gt;Now I use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=wildmatch(('|' &amp;amp;concat(DISTINCT GetFieldSelections(%Fieldz2,'|')) &amp;amp;'|'),'*|Topic|*')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 12:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/333173#M122783</guid>
      <dc:creator>dgreenberg</dc:creator>
      <dc:date>2017-11-14T12:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Determine if a value is currently selected?</title>
      <link>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/2467962#M1225889</link>
      <description>&lt;P&gt;I use this solution in my app:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;wildmatch('#' &amp;amp; GetFieldSelections([Field], '#') &amp;amp; '#','*#Topic#*')&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="simple-translate" class="simple-translate-system-theme"&gt;
&lt;DIV&gt;
&lt;DIV class="simple-translate-button isShow" style="background-image: url('chrome-extension://ibplnjkanclpjokhdolnendpplpjiace/icons/512.png'); height: 22px; width: 22px; top: 80px; left: 583px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-panel " style="width: 300px; height: 200px; top: 0px; left: 0px; font-size: 13px;"&gt;
&lt;DIV class="simple-translate-result-wrapper" style="overflow: hidden;"&gt;
&lt;DIV class="simple-translate-move" draggable="true"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="simple-translate-result-contents"&gt;
&lt;P class="simple-translate-result"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="simple-translate-candidate"&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Jul 2024 09:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Determine-if-a-value-is-currently-selected/m-p/2467962#M1225889</guid>
      <dc:creator>piter89</dc:creator>
      <dc:date>2024-07-04T09:35:31Z</dc:date>
    </item>
  </channel>
</rss>

