<?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: Check if value exists in field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-if-value-exists-in-field/m-p/326242#M120116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hello&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution &lt;SPAN class="hps"&gt;given by&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;GandalfGray&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is excellent.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Even&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in my documents&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;saved&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for later&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Just&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for the study of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;QlikView&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;would like to post&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;solution that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;used&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;in an application:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;SUBSTRINGCOUNT&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;((';'&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;=&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;CONCAT&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(DISTINCT &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;FieldName&lt;/SPAN&gt;,';')&amp;amp;';'),';'&amp;amp;$( &lt;SPAN class="hps"&gt;VARIABLE&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;)&amp;amp;';')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;But&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as I said&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the solution&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;given by&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;GandalfGray&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;much better!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hugs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Stive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Brasil&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2011 17:26:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-09-06T17:26:08Z</dc:date>
    <item>
      <title>Check if value exists in field</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-value-exists-in-field/m-p/326239#M120113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check if a value exists in a fild so I can display a message to users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my idea is to have a conditional show on a text object, something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=if(FieldIndex('Payroll Detail Amount','blocked'),1,0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, fieldindex returns the index of the unfiltered position of the vlaue.&amp;nbsp; I am looking for a function that will return the index (or a TRUE or FALSE) on a filtered list.&amp;nbsp; EG, if the user has made selections and there are no records with a value of 'blocked' then return FALSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your help&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 12:05:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-value-exists-in-field/m-p/326239#M120113</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2011-09-06T12:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Check if value exists in field</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-value-exists-in-field/m-p/326240#M120114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand your case:&lt;/P&gt;&lt;P&gt;You want to return 1 if the user has a value "blocked" in&amp;nbsp; [Payroll Detail Amount] when all selections he has made is taken into account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=count({&amp;lt;[Payroll Detail Amount]*={"blocked"}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;distinct &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[Payroll Detail Amount])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will return 1 if blocked are among possible [Payroll Detail Amount] and 0 otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth/gg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 12:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-value-exists-in-field/m-p/326240#M120114</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-09-06T12:21:34Z</dc:date>
    </item>
    <item>
      <title>Check if value exists in field</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-value-exists-in-field/m-p/326241#M120115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hadn't even crossed my mind to use set analysis.&amp;nbsp; Thank you for your help - this works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 12:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-value-exists-in-field/m-p/326241#M120115</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2011-09-06T12:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Check if value exists in field</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-value-exists-in-field/m-p/326242#M120116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hello&lt;/SPAN&gt;, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution &lt;SPAN class="hps"&gt;given by&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;GandalfGray&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is excellent.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Even&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in my documents&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;saved&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for later&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Just&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for the study of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;QlikView&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;would like to post&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;solution that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;used&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;in an application:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;SUBSTRINGCOUNT&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;((';'&amp;amp;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;=&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;CONCAT&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;(DISTINCT &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;FieldName&lt;/SPAN&gt;,';')&amp;amp;';'),';'&amp;amp;$( &lt;SPAN class="hps"&gt;VARIABLE&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;)&amp;amp;';')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;But&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as I said&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the solution&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;given by&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;GandalfGray&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;much better!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hugs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Stive&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Brasil&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 17:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-value-exists-in-field/m-p/326242#M120116</guid>
      <dc:creator />
      <dc:date>2011-09-06T17:26:08Z</dc:date>
    </item>
  </channel>
</rss>

