<?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 Loop Through Values (Normal If statement Not Working) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-Through-Values-Normal-If-statement-Not-Working/m-p/218129#M71294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jandre,&lt;/P&gt;&lt;P&gt;There's probably a cleaner solution, but one I'm thinking of at a first glance is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;StatusB: // loads in memory all possible values of Status BLOAD DISTINCT [Status B] AS CheckBFROM Table; Data:LOAD Member, [Status A], [Status B], IF(EXISTS(CheckB, [Status A]), 1) AS AinB // Check values for Status A in Status BFROM Table; DROP TABLE StatusB;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Feb 2011 11:22:04 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-02-16T11:22:04Z</dc:date>
    <item>
      <title>Loop Through Values (Normal If statement Not Working)</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Through-Values-Normal-If-statement-Not-Working/m-p/218128#M71293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Have a Table which looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Member Status A Status B&lt;/P&gt;&lt;P&gt;1 1 -&lt;/P&gt;&lt;P&gt;1 2 -&lt;/P&gt;&lt;P&gt;1 3 -&lt;/P&gt;&lt;P&gt;1 - 1&lt;/P&gt;&lt;P&gt;1 - 4&lt;/P&gt;&lt;P&gt;1 - 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if i Do a Normal If Statement:&lt;/P&gt;&lt;P&gt;IF([Status A] = [Status B],1)&lt;/P&gt;&lt;P&gt;Then it doesn't work as the IF Statement works Line Per Line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to do something to loop through the values to see if the values are infact there. Not line per line. Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([Status A] In [Status B],1) (In Function in SQL, don't know if there is something like this in Qlikview)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Assist.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jandre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 11:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Through-Values-Normal-If-statement-Not-Working/m-p/218128#M71293</guid>
      <dc:creator />
      <dc:date>2011-02-16T11:09:39Z</dc:date>
    </item>
    <item>
      <title>Loop Through Values (Normal If statement Not Working)</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Through-Values-Normal-If-statement-Not-Working/m-p/218129#M71294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jandre,&lt;/P&gt;&lt;P&gt;There's probably a cleaner solution, but one I'm thinking of at a first glance is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;StatusB: // loads in memory all possible values of Status BLOAD DISTINCT [Status B] AS CheckBFROM Table; Data:LOAD Member, [Status A], [Status B], IF(EXISTS(CheckB, [Status A]), 1) AS AinB // Check values for Status A in Status BFROM Table; DROP TABLE StatusB;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 11:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Through-Values-Normal-If-statement-Not-Working/m-p/218129#M71294</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-02-16T11:22:04Z</dc:date>
    </item>
  </channel>
</rss>

