<?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: How to check if a value exist in a listbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862401#M656217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a expression like this in a list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(SubStringCount(Concat(DISTINCT DepthSN,'|'), 'aaa') = 1, 'aaa exists', 'aaa does not exist')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will change results based on your selection. So for instance if you don't select 'aaa' in your list box it will say aaa does not exist. If you don't want that you can change the expression to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(SubStringCount(Concat({1}DISTINCT DepthSN,'|'), 'aaa') = 1, 'aaa exists', 'aaa does not exist')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&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>Wed, 27 May 2015 13:59:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-05-27T13:59:36Z</dc:date>
    <item>
      <title>How to check if a value exist in a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862400#M656216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;with an expression i simply want to &lt;STRONG&gt;check&lt;/STRONG&gt; if a &lt;STRONG&gt;value exists&lt;/STRONG&gt; inside a &lt;STRONG&gt;listbox&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can this be done?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;Example:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&amp;nbsp; &lt;/P&gt;&lt;P&gt;Load *,DepthSN As DepthSN_New Inline [&amp;nbsp; &lt;/P&gt;&lt;P&gt;Producer, DepthSN&amp;nbsp; &lt;/P&gt;&lt;P&gt;p1,aaa&amp;nbsp; &lt;/P&gt;&lt;P&gt;p2,bbb&amp;nbsp; &lt;/P&gt;&lt;P&gt;p3,ccc ];&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to check that the value 'aaa' exists inside 'Data'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 13:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862400#M656216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-27T13:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a value exist in a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862401#M656217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a expression like this in a list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(SubStringCount(Concat(DISTINCT DepthSN,'|'), 'aaa') = 1, 'aaa exists', 'aaa does not exist')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will change results based on your selection. So for instance if you don't select 'aaa' in your list box it will say aaa does not exist. If you don't want that you can change the expression to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(SubStringCount(Concat({1}DISTINCT DepthSN,'|'), 'aaa') = 1, 'aaa exists', 'aaa does not exist')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&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>Wed, 27 May 2015 13:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862401#M656217</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-27T13:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a value exist in a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862402#M656218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count({&amp;lt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DepthSN ={"aaaa"}&lt;/SPAN&gt;&amp;gt;} &lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DepthSN &lt;/SPAN&gt;) &amp;gt; 0 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 14:00:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862402#M656218</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-05-27T14:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a value exist in a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862403#M656219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your answer,&lt;/P&gt;&lt;P&gt;unfortunately concat is not good, if you have million of rows &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 14:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862403#M656219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-27T14:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a value exist in a listbox</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862404#M656220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are right. &lt;A _jive_internal="true" href="https://community.qlik.com/people/cleveranjos"&gt;Clever Anjos&lt;/A&gt;‌'s solution seems to be much more efficient.&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>Wed, 27 May 2015 14:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-a-value-exist-in-a-listbox/m-p/862404#M656220</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-27T14:08:03Z</dc:date>
    </item>
  </channel>
</rss>

