<?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: IF statement... With two conditions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489348#M182878</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;Can you provide a sample file? Without see that scenario, we can't able to give solution. Expression looks ok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 18:32:17 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2013-09-27T18:32:17Z</dc:date>
    <item>
      <title>IF statement... With two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489347#M182877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use a IF Statement which has two conditions to satisfy and on the basis of the two conditions, it should return True or False.&lt;/P&gt;&lt;P&gt;I am using the following expression---&amp;gt;&lt;/P&gt;&lt;P&gt;=IF(age&amp;gt;30 AND Sal&amp;gt;200, 1,0) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however this returning me a False value even if Both the conditions are met !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me where am i going wrong ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 18:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489347#M182877</guid>
      <dc:creator />
      <dc:date>2013-09-27T18:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement... With two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489348#M182878</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;Can you provide a sample file? Without see that scenario, we can't able to give solution. Expression looks ok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 18:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489348#M182878</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-09-27T18:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement... With two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489349#M182879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using AND trying using a nested if:&lt;/P&gt;&lt;P&gt;If(Age &amp;gt; 30,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Sal &amp;gt; 200, 1,0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 18:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489349#M182879</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-09-27T18:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement... With two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489350#M182880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax of your if statement looks correct.&amp;nbsp; I believe if the conditions are met and you want the result to represent 'true', you should replace 1 with -1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 18:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489350#M182880</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2013-09-27T18:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: IF statement... With two conditions</title>
      <link>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489351#M182881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jpapador !&lt;/P&gt;&lt;P&gt;It helped &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i want to aggregate the output of the IF condition on a Dimension, and Sum it based on the Dimension selected in the Dimension selection in charts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this --&amp;gt;&lt;/P&gt;&lt;P&gt; =sum(Aggr(if(Age&amp;gt;30,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Sal&amp;gt;200,'1','0')),EMPID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------&lt;/P&gt;&lt;P&gt;Where i want to aggregate on EMPID and &lt;/P&gt;&lt;P&gt;Sum based on a Dimension lets say X &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Idea how to go about it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 18:46:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-statement-With-two-conditions/m-p/489351#M182881</guid>
      <dc:creator />
      <dc:date>2013-09-27T18:46:45Z</dc:date>
    </item>
  </channel>
</rss>

