<?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 How to add a DateDiff in the load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-add-a-DateDiff-in-the-load-script/m-p/296784#M1199988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, my version is with makedate()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;If(makedate(2010,11,1) -[ACW Last Requal Date .........&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;By the way, it seems you are trying to generate &lt;B&gt;"years of something"&lt;/B&gt; (LOL xD), maybe you can use an &lt;B&gt;intervalmatch()&lt;/B&gt; instead of nested if's&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Dec 2010 17:50:51 GMT</pubDate>
    <dc:creator>hector</dc:creator>
    <dc:date>2010-12-29T17:50:51Z</dc:date>
    <item>
      <title>How to add a DateDiff in the load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-DateDiff-in-the-load-script/m-p/296782#M1199986</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;Apologies, I'm a newbie to QV!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to add a DateDiff field in the load script, as the piece of code below is giving me nulls,1,2 and3+ but nothing in the 3 group and I just want to see why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DateDiff needed is a fixed date of 01-Nov-10 - {ACW Last Requal Date], would anyone be able to point me in the right direction please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(IsNull([ACW Last Requal Date]),'',&lt;/P&gt;&lt;P&gt;If('01/11/2010'-[ACW Last Requal Date] &amp;lt; '366','1',&lt;/P&gt;&lt;P&gt;If('01/11/2010'-[ACW Last Requal Date] &amp;lt; '731','2',&lt;/P&gt;&lt;P&gt;If('01/11/2010'-[ACW Last Requal Date] &amp;lt; '1096','3',&lt;/P&gt;&lt;P&gt;If('01/11/2010'-[ACW Last Requal Date] &amp;gt; '1095','+3'))))) &lt;B&gt;AS&lt;/B&gt; [ACW Last Requal Year],&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 17:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-DateDiff-in-the-load-script/m-p/296782#M1199986</guid>
      <dc:creator />
      <dc:date>2010-12-29T17:23:18Z</dc:date>
    </item>
    <item>
      <title>How to add a DateDiff in the load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-DateDiff-in-the-load-script/m-p/296783#M1199987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your syntax is mostly right, just change it to: If(date#('01/11/2010','DD/MM/YYYY') - [ACW LAST Requal Date] etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 17:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-DateDiff-in-the-load-script/m-p/296783#M1199987</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2010-12-29T17:31:35Z</dc:date>
    </item>
    <item>
      <title>How to add a DateDiff in the load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-a-DateDiff-in-the-load-script/m-p/296784#M1199988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, my version is with makedate()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;If(makedate(2010,11,1) -[ACW Last Requal Date .........&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;By the way, it seems you are trying to generate &lt;B&gt;"years of something"&lt;/B&gt; (LOL xD), maybe you can use an &lt;B&gt;intervalmatch()&lt;/B&gt; instead of nested if's&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 17:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-a-DateDiff-in-the-load-script/m-p/296784#M1199988</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2010-12-29T17:50:51Z</dc:date>
    </item>
  </channel>
</rss>

