<?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: Nested If Statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-If-Statement/m-p/666223#M676856</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;Try like this&lt;/P&gt;&lt;P&gt;// Load the Excel files &lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; ID,&lt;/P&gt;&lt;P&gt; Division,&lt;/P&gt;&lt;P&gt; Department,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Centre,&lt;/P&gt;&lt;P&gt; Group&lt;/P&gt;&lt;P&gt;From Table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; ID,&lt;/P&gt;&lt;P&gt; Division,&lt;/P&gt;&lt;P&gt; Department,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Centre,&lt;/P&gt;&lt;P&gt; if((IsNull(Group) &amp;lt;&amp;gt; 0 And IsNull(Centre) &amp;lt;&amp;gt; 0 and IsNull(Division) &amp;lt;&amp;gt; 0),Department,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if((IsNull(Group) &amp;lt;&amp;gt; 0 And IsNull(Centre) &amp;lt;&amp;gt; 0 and IsNull(Division) = 0), Division,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if((IsNull(Group) &amp;lt;&amp;gt; 0 And IsNull(Centre) = 0 and IsNull(Division) = 0), Centre))) AS Group &lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iyyappan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 11:40:37 GMT</pubDate>
    <dc:creator>v_iyyappan</dc:creator>
    <dc:date>2014-06-12T11:40:37Z</dc:date>
    <item>
      <title>Nested If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-Statement/m-p/666222#M676855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 338px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="26" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl64" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;Division&lt;/TD&gt;&lt;TD class="xl64" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="82"&gt;Department&lt;/TD&gt;&lt;TD class="xl64" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;Centre&lt;/TD&gt;&lt;TD class="xl64" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="64"&gt;Group&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;1111&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;AAA&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;ZZZ&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;AZ&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;ZA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2222&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;YYY&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;BY&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;3333&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;BBB&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;XXX&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;4444&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;WWW&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;CW&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condition to be used if Group is Blank:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if((len(trim(Group))&amp;lt;1 and len(trim(Centre))&amp;lt;1 and len(trim(Division))&amp;lt;1),Department,&lt;/P&gt;&lt;P&gt;if((len(trim(Group))&amp;lt;1 and len(trim(Centre))&amp;lt;1 and len(Division)&amp;gt;1),Division,&lt;/P&gt;&lt;P&gt;if((len(trim(Group))&amp;lt;1 and len(Centre)&amp;gt;1 and len(trim(Division))&amp;lt;1),Centre,Group)))&amp;nbsp;&amp;nbsp; AS Group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the Above Expression used is Correct.............................????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above Expression Description:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Group is Blank&amp;nbsp; and Centre is Blank and Division is Blank, Department,&lt;/P&gt;&lt;P&gt;if(Group is Blank and Centre is Blank and Division is NOT Blank, Division,&lt;/P&gt;&lt;P&gt;if(Group is Blank and Centre is NOT Blank and Division is Blank, Centre, Group)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 11:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-Statement/m-p/666222#M676855</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-06-12T11:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If Statement</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-Statement/m-p/666223#M676856</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;Try like this&lt;/P&gt;&lt;P&gt;// Load the Excel files &lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; ID,&lt;/P&gt;&lt;P&gt; Division,&lt;/P&gt;&lt;P&gt; Department,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Centre,&lt;/P&gt;&lt;P&gt; Group&lt;/P&gt;&lt;P&gt;From Table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt; ID,&lt;/P&gt;&lt;P&gt; Division,&lt;/P&gt;&lt;P&gt; Department,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Centre,&lt;/P&gt;&lt;P&gt; if((IsNull(Group) &amp;lt;&amp;gt; 0 And IsNull(Centre) &amp;lt;&amp;gt; 0 and IsNull(Division) &amp;lt;&amp;gt; 0),Department,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if((IsNull(Group) &amp;lt;&amp;gt; 0 And IsNull(Centre) &amp;lt;&amp;gt; 0 and IsNull(Division) = 0), Division,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if((IsNull(Group) &amp;lt;&amp;gt; 0 And IsNull(Centre) = 0 and IsNull(Division) = 0), Centre))) AS Group &lt;/P&gt;&lt;P&gt;Resident Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iyyappan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 11:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-Statement/m-p/666223#M676856</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2014-06-12T11:40:37Z</dc:date>
    </item>
  </channel>
</rss>

