<?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 Multiple If statement not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-If-statement-not-working/m-p/2062117#M1223312</link>
    <description>&lt;P&gt;Hi, I'm trying to fill the background color of the following pivot table on Qlik using some conditions.&lt;BR /&gt;&lt;BR /&gt;Important fields: Submitted Month, Month Due and Area&lt;/P&gt;
&lt;P&gt;Image 1:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tempsnip.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105278iB3BF2ABDCA209FEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="tempsnip.png" alt="tempsnip.png" /&gt;&lt;/span&gt;&lt;BR /&gt;PS: Apologies, had to redact some info due to security reasons.&lt;/P&gt;
&lt;P&gt;Conditions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Red - If Submitted Month &amp;lt;&amp;gt; Month Due (Irrespective of the Area)&lt;/LI&gt;
&lt;LI&gt;If Submitted Month = Month Due, then
&lt;OL&gt;
&lt;LI&gt;Green - If Area = "A"&lt;/LI&gt;
&lt;LI&gt;Blue - If Area = "B"&lt;/LI&gt;
&lt;LI&gt;Else Yellow&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I tried&amp;nbsp;IF([Submitted Month]&amp;lt;&amp;gt;[Month Audit Due],Red(),Green()) to check my if statement is working fine, it colored all the values to green except where&amp;nbsp;Submitted Month &amp;lt;&amp;gt; Month, which was in red as expected [Ref Image 2 below].&lt;BR /&gt;&lt;BR /&gt;Image 2:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tempsnip1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105282i3F275CDF8FDB2FA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="tempsnip1.png" alt="tempsnip1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But when I add the rest of my if statement, none of the cells were colored (as shown in Image 1 above). This is the formula I used:&lt;/P&gt;
&lt;P&gt;=IF([Submitted Month]&amp;lt;&amp;gt;[Month Audit Due],Red(),IF([Area]="A",Green(),IF([Area]="B",Blue(),Yellow()))&lt;BR /&gt;&lt;BR /&gt;Can you please help me solve this issue. Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 15:02:37 GMT</pubDate>
    <dc:creator>EashwarBalaji</dc:creator>
    <dc:date>2023-04-19T15:02:37Z</dc:date>
    <item>
      <title>Multiple If statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-statement-not-working/m-p/2062117#M1223312</link>
      <description>&lt;P&gt;Hi, I'm trying to fill the background color of the following pivot table on Qlik using some conditions.&lt;BR /&gt;&lt;BR /&gt;Important fields: Submitted Month, Month Due and Area&lt;/P&gt;
&lt;P&gt;Image 1:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tempsnip.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105278iB3BF2ABDCA209FEA/image-size/large?v=v2&amp;amp;px=999" role="button" title="tempsnip.png" alt="tempsnip.png" /&gt;&lt;/span&gt;&lt;BR /&gt;PS: Apologies, had to redact some info due to security reasons.&lt;/P&gt;
&lt;P&gt;Conditions:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Red - If Submitted Month &amp;lt;&amp;gt; Month Due (Irrespective of the Area)&lt;/LI&gt;
&lt;LI&gt;If Submitted Month = Month Due, then
&lt;OL&gt;
&lt;LI&gt;Green - If Area = "A"&lt;/LI&gt;
&lt;LI&gt;Blue - If Area = "B"&lt;/LI&gt;
&lt;LI&gt;Else Yellow&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I tried&amp;nbsp;IF([Submitted Month]&amp;lt;&amp;gt;[Month Audit Due],Red(),Green()) to check my if statement is working fine, it colored all the values to green except where&amp;nbsp;Submitted Month &amp;lt;&amp;gt; Month, which was in red as expected [Ref Image 2 below].&lt;BR /&gt;&lt;BR /&gt;Image 2:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tempsnip1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105282i3F275CDF8FDB2FA0/image-size/large?v=v2&amp;amp;px=999" role="button" title="tempsnip1.png" alt="tempsnip1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But when I add the rest of my if statement, none of the cells were colored (as shown in Image 1 above). This is the formula I used:&lt;/P&gt;
&lt;P&gt;=IF([Submitted Month]&amp;lt;&amp;gt;[Month Audit Due],Red(),IF([Area]="A",Green(),IF([Area]="B",Blue(),Yellow()))&lt;BR /&gt;&lt;BR /&gt;Can you please help me solve this issue. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 15:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-statement-not-working/m-p/2062117#M1223312</guid>
      <dc:creator>EashwarBalaji</dc:creator>
      <dc:date>2023-04-19T15:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple If statement not working</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-If-statement-not-working/m-p/2062485#M1223320</link>
      <description>&lt;P&gt;Not sure if this is a technical constraint or not, but equating columns to a static text is not working. Let me explain.&lt;BR /&gt;&lt;BR /&gt;I created two variables on QlikSense with the name vA and vB with values A and B respectively and used the following statement in background expression:&lt;BR /&gt;&lt;BR /&gt;=IF([Submitted Month]&amp;lt;&amp;gt;[Month Audit Due],Red(),IF([Area]=vA,Green(),IF([Area]=vB,Blue(),Yellow())))&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tempsnip2.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/105357iEF17554BFFD308C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="tempsnip2.png" alt="tempsnip2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;It works perfectly fine now.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 10:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-If-statement-not-working/m-p/2062485#M1223320</guid>
      <dc:creator>EashwarBalaji</dc:creator>
      <dc:date>2023-04-20T10:39:17Z</dc:date>
    </item>
  </channel>
</rss>

