<?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 condition in Load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731003#M1055592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview Guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since yesterday, I was trying to find the solution for my post but i could't find till now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be really appreciate if anyone give me exact solution for my attached QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Robert &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 09:19:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-16T09:19:12Z</dc:date>
    <item>
      <title>If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730991#M1055577</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;Could you please let me know that will below script work properly based on my if condition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Created_at,&lt;/P&gt;&lt;P&gt;order_status,&lt;/P&gt;&lt;P&gt;Item_staus,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Created_at&amp;gt;=$v_Lasmonth and Status = ('pending','exportable','reserved','shipped'),'delivered',order_status) as order_status1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM C:\Users\User\Desktop\QvdName.qvd(QVD);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not please let know how to solve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 11:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730991#M1055577</guid>
      <dc:creator />
      <dc:date>2014-10-15T11:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730992#M1055578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try variable like this $(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;v_Lasmonth)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 11:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730992#M1055578</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2014-10-15T11:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730993#M1055580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Created_at&amp;gt;='($v_Lasmonth)'andStatus='pending' or Status='exportable' or Status='reserved' or Status='shipped','delivered',order_status) as order_status1&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 22:29:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730993#M1055580</guid>
      <dc:creator>fkeuroglian</dc:creator>
      <dc:date>2014-10-15T22:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730994#M1055581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will depend on the format of the Created_at field and the content of the $v_Lasmonth variable.&amp;nbsp; Assuming Created_at is actually a date and the variable has the date in YYYYMMDD format, it would be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Created_at &amp;gt;= Date#('$(v_Lasmonth)', 'YYYYMMDD') and Match(lower(Status), 'exportable', 'reserved', 'shipped') &amp;gt; 0, 'delivered', order_status) as order_status1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whilst you can have date format values in variables they can be tricky to use in statements, by always converting to text when you set the variable (with a Date function) and then converting back when you use it problems can be avoided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 22:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730994#M1055581</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-10-15T22:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730995#M1055583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my real load script: the aim of the script is that i want change the order status into &lt;STRONG&gt;delivered&lt;/STRONG&gt; from last month beginning to till max of created date. But below script doesn't works.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD id_soi, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; created_date, &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_no,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item_status,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_status,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(created_date &amp;gt;= MonthStart(Max(created_date)-30) and order_status='pending' or order_status='exportable' or order_status='reserved' or order_status='shipped','delivered',order_status) as order_status1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthStart(created_at) as mop&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Status;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table Status;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create date format is : 8/1/2014 (M/D/YYYY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please advise me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 03:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730995#M1055583</guid>
      <dc:creator />
      <dc:date>2014-10-16T03:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730996#M1055585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the sample QVW file and Data source so could you please point out me the issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 05:40:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730996#M1055585</guid>
      <dc:creator />
      <dc:date>2014-10-16T05:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730997#M1055586</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,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD id_soi, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt; created_date, &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_no,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item_status,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; order_status,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(num(created_date) &amp;gt;= num(MonthStart(Max(created_date)-30)) and order_status='pending' or order_status='exportable' or order_status='reserved' or order_status='shipped','delivered',order_status) as order_status1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthStart(created_at) as mop&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Status;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table Status;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD id_soi, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt; created_date, &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_no,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; item_status,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; order_status,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(num(created_date) &amp;gt;= num(MonthStart(Max(created_date)-30)) and wildmatch(order_status,'pending','exportable','reserved','shipped'),'delivered',order_status) as order_status1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthStart(created_at) as mop&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Status;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table Status;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 05:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730997#M1055586</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-16T05:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730998#M1055587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried your way but i am getting error and i guess my &amp;gt;= not working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 05:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730998#M1055587</guid>
      <dc:creator />
      <dc:date>2014-10-16T05:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730999#M1055588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't do an aggregation in line like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your options are do a group by load into a temporary table and PEEK out the&lt;/P&gt;&lt;P&gt;max data into a variable, then use syntax like I put above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively (and I would suggest this) use monthstart(today()). This is&lt;/P&gt;&lt;P&gt;simpler and it remove the risk of a rogue future posting stuffing up your&lt;/P&gt;&lt;P&gt;logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 06:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/730999#M1055588</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-10-16T06:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731000#M1055589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, I don't understand exactly what your saying as i am very new Qlikview. I would be really grateful&amp;nbsp; that if you&amp;nbsp; do it in my attached sample QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 07:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731000#M1055589</guid>
      <dc:creator />
      <dc:date>2014-10-16T07:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731001#M1055590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afraid that is a bit difficult whilst stood on an over crowded train!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply replace the text in your code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;max(created_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;today()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should then work.  This presumes that created_date is a timestamp and&lt;/P&gt;&lt;P&gt;the max is generally going to be today's date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 07:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731001#M1055590</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-10-16T07:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731002#M1055591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried something like below as you said to load temp table and store into the variable but even it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; MonthStart(Max(created_date)-30) as LastMonth &lt;/P&gt;&lt;P&gt;RESIDENT Status;&lt;/P&gt;&lt;P&gt;LET v_LastMonth = num(peek('LastMonth',0,'Date'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD id_soi, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; created_date, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_no,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; item_status,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(num(created_date) &amp;gt;= '($v_Lastmonth)' and wildmatch(order_status,'pending','exportable','reserved','shipped'),'delivered',order_status) as order_status1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MonthStart(created_at) as mop&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Resident Status;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 09:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731002#M1055591</guid>
      <dc:creator />
      <dc:date>2014-10-16T09:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731003#M1055592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview Guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since yesterday, I was trying to find the solution for my post but i could't find till now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be really appreciate if anyone give me exact solution for my attached QVW file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Robert &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 09:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731003#M1055592</guid>
      <dc:creator />
      <dc:date>2014-10-16T09:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731004#M1055593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be the below script will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;LOAD Date(created_at,'YYYY-MM-DD')as created_at, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mop, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order_status&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Order_Status.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;//D:\QlikView\QV Community Discussion\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(created_at) AS LastMonth&lt;/P&gt;&lt;P&gt;Resident Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET v_Lastmonth = MonthStart(Peek('LastMonth',0, 'Date'), -1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;created_at,&lt;/P&gt;&lt;P&gt;mop,&lt;/P&gt;&lt;P&gt;order_status,&lt;/P&gt;&lt;P&gt;if(created_at &amp;gt;= $(v_Lastmonth) and MixMatch(order_status, 'exportable','delivered'),order_status) as order_status1&lt;/P&gt;&lt;P&gt;Resident Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Source; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 09:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731004#M1055593</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-10-16T09:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731005#M1055594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yours script doesn't work ... please advise any other way to fix this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Robert. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 09:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731005#M1055594</guid>
      <dc:creator />
      <dc:date>2014-10-16T09:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731006#M1055595</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;MOdify your script to and Reload it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Source:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;created_at&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;created_at&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NUM_CREATED_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;created_at&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'YYYY-MM-DD') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NEW_CREATED_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;mop&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;order_status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[..\Desktop\Order_Status.xlsx]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ooxml&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;embedded&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;labels&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;is&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Sheet1);&lt;BR /&gt;&lt;BR /&gt;Status:&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NEW_CREATED_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;mop&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;order_status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NUM_CREATED_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()-30)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;order_status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ='exportable','delivered',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;order_status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;order_status1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Source;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Source; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Find attached file for your reference&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 10:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731006#M1055595</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-10-16T10:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731007#M1055596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please describe your requirement, so that I can check what is the issue in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 11:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731007#M1055596</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-10-16T11:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731008#M1055597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome ... Many Thanks max.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See you with next challenging question. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 11:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731008#M1055597</guid>
      <dc:creator />
      <dc:date>2014-10-16T11:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731009#M1055598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Celambarasan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imported my transnational&amp;nbsp; data into qlikview and used to reload every day. the aim is that i want to update my order status into &lt;STRONG&gt;delivered&lt;/STRONG&gt; if&amp;nbsp; &lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;order_status = ('pending','exportable','reserved','shipped') and only last month of data from today.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max given me the answer that whats exactly i want.&amp;nbsp; if you any other answer for my question you could send it to me as well since i want to learn QlikView soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 11:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731009#M1055598</guid>
      <dc:creator />
      <dc:date>2014-10-16T11:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in Load script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731010#M1055599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the code you have posted above to work you will need to change the following...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;LET v_LastMonth = num(peek('LastMonth',0,'Date')&lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5em;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;LET v_LastMonth = Date(peek('LastMonth',0,'Date'), 'YYYYMMDD'&lt;/SPAN&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;And then:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: Helvetica, Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(num(created_date) &amp;gt;= '($v_Lastmonth)' and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Should read:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(created_date &amp;gt;= Date#('$(v_Lastmonth)', 'YYYYMMDD') and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;That should then work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This converts the date into a string that can be human read in the debugger or variable overview when the peek is done.&amp;nbsp; The date string is then converted back to a date when it is compared.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;To do it using the num function, you should use num# instead of num, and you should not use the quote marks around the variable when you do the compare.&amp;nbsp; You also have a bracket out of place on the variable read.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I would strongly recommend going via a string though - if you are going the route of a temporary table - as it is more robust.&amp;nbsp; If a null date is encountered the code will still function, but if a null is encountered when using numbers to compare it can crash the load out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Steve &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 11:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-Load-script/m-p/731010#M1055599</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-10-16T11:38:47Z</dc:date>
    </item>
  </channel>
</rss>

