<?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 Adding Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-Date/m-p/314081#M115946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; load Table1&lt;/P&gt;&lt;P&gt;join Table2 with the Enterdate by the field Sales Order Number.&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;Sales Order Number,&lt;/P&gt;&lt;P&gt;if(isnull(Enterdate),today(),Enterdate) as Enterdate&lt;/P&gt;&lt;P&gt;resident Table1;&lt;/P&gt;&lt;P&gt;drop Table1.&lt;/P&gt;&lt;P&gt;So you will join those SON which are having a date. Then in the secon statement you load the SON an check the Enterdate. If it is null (no date) you set today, otherwise the Enterdate.&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, 19 May 2011 18:01:03 GMT</pubDate>
    <dc:creator>martinpohl</dc:creator>
    <dc:date>2011-05-19T18:01:03Z</dc:date>
    <item>
      <title>Adding Date</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Date/m-p/314080#M115945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table (Table 1) that we get once each night that has Sales Order Number and the date the order was entered. We have a routine that runs each hour that returns a table (Table 2) of oonly open orders but does not have the field order entry date (and at the moment we can't add it to the routine). So when I load the two tables with the link Sales Order Number I get no order enty date for open orders that are entered today because they are not in Table 1.&amp;nbsp; I load table 2 first and use a left keep on Table 1 (as that table has all orders open or closed) as I only want matches from Table 1 to Table 2.&amp;nbsp; How in the load script can I create a date of today for items that don't have a match in Table 1 but are in Table 2.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 17:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Date/m-p/314080#M115945</guid>
      <dc:creator />
      <dc:date>2011-05-19T17:51:47Z</dc:date>
    </item>
    <item>
      <title>Adding Date</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Date/m-p/314081#M115946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; load Table1&lt;/P&gt;&lt;P&gt;join Table2 with the Enterdate by the field Sales Order Number.&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;Sales Order Number,&lt;/P&gt;&lt;P&gt;if(isnull(Enterdate),today(),Enterdate) as Enterdate&lt;/P&gt;&lt;P&gt;resident Table1;&lt;/P&gt;&lt;P&gt;drop Table1.&lt;/P&gt;&lt;P&gt;So you will join those SON which are having a date. Then in the secon statement you load the SON an check the Enterdate. If it is null (no date) you set today, otherwise the Enterdate.&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, 19 May 2011 18:01:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Date/m-p/314081#M115946</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-05-19T18:01:03Z</dc:date>
    </item>
    <item>
      <title>Adding Date</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-Date/m-p/314082#M115947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Martin - worked!!!&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 18:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-Date/m-p/314082#M115947</guid>
      <dc:creator />
      <dc:date>2011-05-19T18:25:57Z</dc:date>
    </item>
  </channel>
</rss>

