<?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 statements in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statements-in-load-script/m-p/415297#M1164258</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Just leave as it is..date(EffectiveDate+365) as Renewal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can you say Effective Date &amp;lt;= 365 means? Any thing you compare it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 20:52:05 GMT</pubDate>
    <dc:creator>MayilVahanan</dc:creator>
    <dc:date>2012-09-17T20:52:05Z</dc:date>
    <item>
      <title>If statements in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statements-in-load-script/m-p/415296#M1164257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to Qlikview - at least developing scripts and I need to put in three If statements in my load script.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next three lines are each line I need to calculate in the script: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effective Date + 365 days as Renewal,&lt;/P&gt;&lt;P&gt;Effective Date &amp;lt;= 365 days AND Agent First Application Date &amp;lt;= 365 days as First Year New Agent,&lt;/P&gt;&lt;P&gt;Effective Date &amp;lt;= 365 days AND Agent First Application Date &amp;gt;= 365 days as First Year Existing Agent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read the initial code as an If statement within the load as IF(Effective Date + 365 Days, __) as Renewal - is there any values I'd put in the THEN part or do I leave that alone? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 20:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statements-in-load-script/m-p/415296#M1164257</guid>
      <dc:creator />
      <dc:date>2012-09-17T20:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: If statements in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statements-in-load-script/m-p/415297#M1164258</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Just leave as it is..date(EffectiveDate+365) as Renewal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Can you say Effective Date &amp;lt;= 365 means? Any thing you compare it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 20:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statements-in-load-script/m-p/415297#M1164258</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-17T20:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: If statements in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statements-in-load-script/m-p/415298#M1164259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure.&amp;nbsp; The Effective Date is within a year and the First Application Date is also within a year of the first application date - resulting in a new agent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the First Application Date is over a year, then it's an existing agent. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 21:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statements-in-load-script/m-p/415298#M1164259</guid>
      <dc:creator />
      <dc:date>2012-09-17T21:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: If statements in load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-statements-in-load-script/m-p/415299#M1164260</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;&lt;/P&gt;&lt;P&gt;Effective date and first application date are numbers? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, Can you provide a sample numbers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, some thing like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * ,&lt;/P&gt;&lt;P&gt;Date(Effective Date+365) as Renewal,&lt;/P&gt;&lt;P&gt;if(Num(today()) -num(Effective Date) &amp;lt;= 365 AND Num(today())-num(Agent First Application Date) &amp;lt;= 365,'First Year New Agent',&lt;/P&gt;&lt;P&gt;if(Num(today()) -num(Effective Date) &amp;lt;= 365&amp;nbsp; AND Num(today()) -num(Agent First Application Date)&amp;gt;= 365,' First Year Existing Agent')) as Agents&lt;/P&gt;&lt;P&gt;From tableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 21:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statements-in-load-script/m-p/415299#M1164260</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-17T21:59:20Z</dc:date>
    </item>
  </channel>
</rss>

