<?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 If, Then, Else Statement with Multiple Conditions in Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Then-Else-Statement-with-Multiple-Conditions-in-Load/m-p/1222136#M390611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I am trying to create a load statement that populates a field called 'LateFlag' and want it to get filled with either on of 3 entries: "Not Applicable", "On-Time" and "Past-Due". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The conditions are as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;If '&lt;STRONG&gt;Status&lt;/STRONG&gt;' = "Issue Findings","Acknowledged", "Released" or "Closed"; Then enter "Not Applicable into '&lt;STRONG&gt;LateFlag&lt;/STRONG&gt;'.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;If '&lt;STRONG&gt;Status&lt;/STRONG&gt;' = "Pending", "Scheduled" or "Execute"&amp;nbsp; AND Today() is &amp;lt;= '&lt;STRONG&gt;DateDue&lt;/STRONG&gt;'; Then enter "On-Time" &lt;SPAN style="font-size: 16px;"&gt;into '&lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;LateFlag&lt;/STRONG&gt;&lt;SPAN style="font-size: 16px;"&gt;'.&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;Else enter "Past-Due &lt;SPAN style="font-size: 16px;"&gt;into '&lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;LateFlag&lt;/STRONG&gt;&lt;SPAN style="font-size: 16px;"&gt;' (These are considered late).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;The code statement I am trying is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;If(Audits.Status = 'Issue Findings' or 'Acknowledge' or 'Released' or 'Closed', 'Not App', if(Audit Status = 'Pending', '&lt;SPAN style="font-size: 16px;"&gt;Scheduled' or 'Execute' AND Today() &amp;lt;= DateDue, 'On-Time', 'Past-Due&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt; as AuditLateFlag &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Which, I know the syntax is incorrect and I'm trying to search for the correct way to write it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Any help is very much appreciated. Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Jeff&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 00:34:34 GMT</pubDate>
    <dc:creator>jmonroe918</dc:creator>
    <dc:date>2017-03-03T00:34:34Z</dc:date>
    <item>
      <title>If, Then, Else Statement with Multiple Conditions in Load</title>
      <link>https://community.qlik.com/t5/QlikView/If-Then-Else-Statement-with-Multiple-Conditions-in-Load/m-p/1222136#M390611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I am trying to create a load statement that populates a field called 'LateFlag' and want it to get filled with either on of 3 entries: "Not Applicable", "On-Time" and "Past-Due". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;The conditions are as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;If '&lt;STRONG&gt;Status&lt;/STRONG&gt;' = "Issue Findings","Acknowledged", "Released" or "Closed"; Then enter "Not Applicable into '&lt;STRONG&gt;LateFlag&lt;/STRONG&gt;'.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;If '&lt;STRONG&gt;Status&lt;/STRONG&gt;' = "Pending", "Scheduled" or "Execute"&amp;nbsp; AND Today() is &amp;lt;= '&lt;STRONG&gt;DateDue&lt;/STRONG&gt;'; Then enter "On-Time" &lt;SPAN style="font-size: 16px;"&gt;into '&lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;LateFlag&lt;/STRONG&gt;&lt;SPAN style="font-size: 16px;"&gt;'.&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 12pt;"&gt;Else enter "Past-Due &lt;SPAN style="font-size: 16px;"&gt;into '&lt;/SPAN&gt;&lt;STRONG style="font-size: 16px;"&gt;LateFlag&lt;/STRONG&gt;&lt;SPAN style="font-size: 16px;"&gt;' (These are considered late).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 16px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;The code statement I am trying is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt;If(Audits.Status = 'Issue Findings' or 'Acknowledge' or 'Released' or 'Closed', 'Not App', if(Audit Status = 'Pending', '&lt;SPAN style="font-size: 16px;"&gt;Scheduled' or 'Execute' AND Today() &amp;lt;= DateDue, 'On-Time', 'Past-Due&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 16px;"&gt; as AuditLateFlag &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Which, I know the syntax is incorrect and I'm trying to search for the correct way to write it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Any help is very much appreciated. Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Jeff&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 00:34:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Then-Else-Statement-with-Multiple-Conditions-in-Load/m-p/1222136#M390611</guid>
      <dc:creator>jmonroe918</dc:creator>
      <dc:date>2017-03-03T00:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: If, Then, Else Statement with Multiple Conditions in Load</title>
      <link>https://community.qlik.com/t5/QlikView/If-Then-Else-Statement-with-Multiple-Conditions-in-Load/m-p/1222137#M390612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="; font-size: 10pt; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;If([Audits.Status] = 'Issue Findings' or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Audits.Status]&lt;/SPAN&gt; = 'Acknowledge' or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Audits.Status]&lt;/SPAN&gt;= 'Released' or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Audits.Status]&lt;/SPAN&gt; = 'Closed', 'Not App', if([Audit Status] = 'Pending', (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Audit Status]&lt;/SPAN&gt; = '&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;Scheduled' or &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[Audit Status] =&lt;/SPAN&gt; 'Execute') AND Today() &amp;lt;= DateDue, 'On-Time', 'Past-Due&lt;/SPAN&gt;)) &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;as AuditLateFlag&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit; font-weight: inherit;"&gt;Make sure, With your date format of DateDue. Today() always gives 'DD-MM-YYYY'&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 03:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Then-Else-Statement-with-Multiple-Conditions-in-Load/m-p/1222137#M390612</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-03T03:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: If, Then, Else Statement with Multiple Conditions in Load</title>
      <link>https://community.qlik.com/t5/QlikView/If-Then-Else-Statement-with-Multiple-Conditions-in-Load/m-p/1222138#M390613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A bit late, but thanks for the solution. It worked great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Mar 2017 18:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Then-Else-Statement-with-Multiple-Conditions-in-Load/m-p/1222138#M390613</guid>
      <dc:creator>jmonroe918</dc:creator>
      <dc:date>2017-03-17T18:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: If, Then, Else Statement with Multiple Conditions in Load</title>
      <link>https://community.qlik.com/t5/QlikView/If-Then-Else-Statement-with-Multiple-Conditions-in-Load/m-p/1222139#M390614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Mar 2017 01:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Then-Else-Statement-with-Multiple-Conditions-in-Load/m-p/1222139#M390614</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-03-18T01:44:38Z</dc:date>
    </item>
  </channel>
</rss>

