<?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 Automatically incrementing date during load. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Automatically-incrementing-date-during-load/m-p/162146#M35754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anatoly,&lt;/P&gt;&lt;P&gt;That worked well, I just had to modify it slightly to format the date the same as the field.&lt;/P&gt;&lt;P&gt;LET vToday = date(today(), 'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gethyn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Oct 2010 12:13:52 GMT</pubDate>
    <dc:creator>Gethyn</dc:creator>
    <dc:date>2010-10-28T12:13:52Z</dc:date>
    <item>
      <title>Automatically incrementing date during load.</title>
      <link>https://community.qlik.com/t5/QlikView/Automatically-incrementing-date-during-load/m-p/162144#M35752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a table loading from a SQL server and I need to load the data each day but restrict the data so that it only loads up to the end of the current day defined by one of the date fields in the table.&lt;/P&gt;&lt;P&gt;At the moment I have to manually change the date every day before the load, meaning that I can't use publisher to reload the data. Does anyone know a way that I can pick up the the end of current day or start of next day so that I don't have to hard code a date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;DutyAssignment:&lt;BR /&gt;LOAD "DUTY_ID",&lt;BR /&gt; "OU_ID",&lt;BR /&gt; applymap('CostCentreMap',"OU_ID") as [Cost Centre],&lt;BR /&gt; date([PLANNED_DATE_TIME_START]) as [Shift Start],&lt;BR /&gt; "ID_NUMBER" as Employee_ID,&lt;BR /&gt; "SHT_ID",&lt;BR /&gt; "DUTY_CANCEL_REASON_ID",&lt;BR /&gt; "DUTY_CHANGE_REASON_ID",&lt;BR /&gt; "PLANNED_DATE_TIME_START",&lt;BR /&gt; Year(PLANNED_DATE_TIME_START) as Year,&lt;BR /&gt; Month(PLANNED_DATE_TIME_START) as Month,&lt;BR /&gt; Day(PLANNED_DATE_TIME_START) as Day,&lt;BR /&gt; "PLANNED_DATE_TIME_END",&lt;BR /&gt; "ESTIMATED_MINUTES",&lt;BR /&gt; "TEMP_STAFF_REQ_REASON_ID",&lt;BR /&gt; "RST_LOCATION_ID";&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM MAPSMSTR1.dbo."RST_DUTY_ASSIGNMENT"&lt;BR /&gt;Where VALID_FROM_DATE &amp;lt;= '2010-10-28 00:00:00.000';&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gethyn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 09:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatically-incrementing-date-during-load/m-p/162144#M35752</guid>
      <dc:creator>Gethyn</dc:creator>
      <dc:date>2010-10-28T09:08:26Z</dc:date>
    </item>
    <item>
      <title>Automatically incrementing date during load.</title>
      <link>https://community.qlik.com/t5/QlikView/Automatically-incrementing-date-during-load/m-p/162145#M35753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;I think you should use today() function with variable:&lt;/P&gt;&lt;P&gt;LAET vToday = today();&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM ....&lt;/P&gt;&lt;P&gt;WHERE VALID_FROM_DATE &amp;lt;= '$(vToday)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 11:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatically-incrementing-date-during-load/m-p/162145#M35753</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-10-28T11:01:43Z</dc:date>
    </item>
    <item>
      <title>Automatically incrementing date during load.</title>
      <link>https://community.qlik.com/t5/QlikView/Automatically-incrementing-date-during-load/m-p/162146#M35754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anatoly,&lt;/P&gt;&lt;P&gt;That worked well, I just had to modify it slightly to format the date the same as the field.&lt;/P&gt;&lt;P&gt;LET vToday = date(today(), 'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gethyn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 12:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatically-incrementing-date-during-load/m-p/162146#M35754</guid>
      <dc:creator>Gethyn</dc:creator>
      <dc:date>2010-10-28T12:13:52Z</dc:date>
    </item>
    <item>
      <title>Automatically incrementing date during load.</title>
      <link>https://community.qlik.com/t5/QlikView/Automatically-incrementing-date-during-load/m-p/162147#M35755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I glad to help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Oct 2010 12:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Automatically-incrementing-date-during-load/m-p/162147#M35755</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-10-28T12:24:12Z</dc:date>
    </item>
  </channel>
</rss>

