<?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 the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1626655#M734617</link>
    <description>&lt;P&gt;seems to be not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Sep 2019 14:24:13 GMT</pubDate>
    <dc:creator>nevilledhamsiri</dc:creator>
    <dc:date>2019-09-22T14:24:13Z</dc:date>
    <item>
      <title>Nested If statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1625428#M734614</link>
      <description>&lt;P&gt;As per the script given below, I need to fix the date join once following conditions are satisfied&lt;/P&gt;&lt;P&gt;**MonthjoinTemp&amp;lt;&amp;gt;currentMonth&lt;/P&gt;&lt;P&gt;**For currentMonth , paid needs to be zero of the employee.&lt;/P&gt;&lt;P&gt;Can you please combined both in a if statement?.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Neville&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD BR_Code, Month,MONTH(Month)as tr_month,YEAR(Month) as TR_YEAR,EPF_NO,Repeat('0', 6-len(EPF_NO))&amp;amp; EPF_NO as EPF,&lt;/P&gt;&lt;P&gt;EMP_NO,Repeat('0',6-LEN(EMP_NO))&amp;amp;EMP_NO AS EMP ,[Employee_ Name], PAID&lt;BR /&gt;FROM [D:\PAY_SUMMERIES.xlsx] (ooxml, embedded labels, table is Sheet3);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left join (Sheet3)&lt;BR /&gt;load 1 as monthLeftFlag,&lt;BR /&gt;date(max(Month)) as MonthLeftTemp ,&lt;BR /&gt;date(Min(Month)) as MonthjoinTemp,&lt;BR /&gt;EMP_NO&lt;BR /&gt;Resident Sheet3&lt;BR /&gt;Group By EMP_NO;&lt;BR /&gt;Left Join(Sheet3)&lt;BR /&gt;LOad date(max(Month)) as currentMonth&lt;BR /&gt;Resident Sheet3;&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;load *,&lt;BR /&gt;if(MonthLeftTemp=currentMonth,'Active','Left') as EMP_STATUS,&lt;BR /&gt;if(MonthLeftTemp&amp;lt;&amp;gt;currentMonth,MonthLeftTemp) as MonthLeft,&lt;BR /&gt;if(MonthjoinTemp&amp;lt;&amp;gt;currentMonth,MonthjoinTemp)as MonthJoin&lt;BR /&gt;Resident Sheet3;&lt;/P&gt;&lt;P&gt;drop Table Sheet3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1625428#M734614</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1625928#M734615</link>
      <description>&lt;P&gt;Can some one help me on this&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 18:15:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1625928#M734615</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2019-09-19T18:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1626082#M734616</link>
      <description>&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;If (MonthjoinTemp&amp;lt;&amp;gt;currentMonth, 'Not Current',&lt;BR /&gt;&amp;nbsp;If (MonthjoinTemp =currentMonth,0,&amp;nbsp; 'MonthJoned'))&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 06:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1626082#M734616</guid>
      <dc:creator>deshikas</dc:creator>
      <dc:date>2019-09-20T06:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1626655#M734617</link>
      <description>&lt;P&gt;seems to be not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Sep 2019 14:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1626655#M734617</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2019-09-22T14:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1626706#M734618</link>
      <description>&lt;P&gt;&lt;FONT size="1" color="#0000ff"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="1"&gt; *,&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT size="1"&gt; (&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;Month&lt;/FONT&gt;&lt;FONT size="1"&gt; = &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;currentMonth&lt;/FONT&gt;&lt;FONT size="1"&gt;, 0, &lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;PAID&lt;/FONT&gt;&lt;FONT size="1"&gt;) &lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;as&lt;/FONT&gt; &lt;FONT size="1" color="#800000"&gt;PAID2&lt;/FONT&gt;&lt;FONT size="1"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;Resident&lt;/FONT&gt;&lt;FONT size="1"&gt; Data; &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 05:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1626706#M734618</guid>
      <dc:creator>deshikas</dc:creator>
      <dc:date>2019-09-23T05:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1629717#M734619</link>
      <description>&lt;P&gt;Neville, did Desh's last post get things working?&amp;nbsp; If so, please use the Accept as Solution button on that post to mark that as the soluiton and give Desh credit for the help provided.&amp;nbsp; If you figured out something else, consider posting that and mark it, and if you are still working on things, leave an update on where things are.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 18:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1629717#M734619</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-09-30T18:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nested If statement in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1631198#M734620</link>
      <description>&lt;P&gt;Deshikas&lt;/P&gt;&lt;P&gt;It doesn't make what I need to achieve. Could you please send me your out put&amp;nbsp; to see what you have got is something&amp;nbsp; help me in some way.&lt;/P&gt;&lt;P&gt;Thanks for your help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 17:22:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-If-statement-in-the-script/m-p/1631198#M734620</guid>
      <dc:creator>nevilledhamsiri</dc:creator>
      <dc:date>2019-10-03T17:22:50Z</dc:date>
    </item>
  </channel>
</rss>

