<?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: Data Load based on Date in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662691#M49807</link>
    <description>&lt;P&gt;You need to have the (qvd) before the WHERE statement and only one semi colon. You also need to specify both the library and QVD name separately:&lt;/P&gt;&lt;DIV class="edc_error"&gt;LOAD *&lt;BR /&gt;FROM [lib://&lt;STRONG&gt;libname/&lt;/STRONG&gt;abcd.qvd] &lt;STRONG&gt;(qvd)&lt;/STRONG&gt;&lt;BR /&gt;WHERE floor([Date End])&amp;gt;floor(Today());&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;If you can't get it working please copy and paste the entire load statement, as you have it, into the thread.&lt;/DIV&gt;</description>
    <pubDate>Sun, 05 Jan 2020 18:10:46 GMT</pubDate>
    <dc:creator>stevedark</dc:creator>
    <dc:date>2020-01-05T18:10:46Z</dc:date>
    <item>
      <title>Data Load based on Date</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662675#M49798</link>
      <description>&lt;P&gt;We have a data set that includes both "expired" and "current" data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Expired" data would be any record that has an end date prior to today's rate.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Load script, we only want to load data that has an expiration date AFTER today's date.&amp;nbsp; That will drop the expired data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best approach to doing this at the time of loading from a .qvd?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662675#M49798</guid>
      <dc:creator>firmographs</dc:creator>
      <dc:date>2024-11-16T03:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load based on Date</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662676#M49799</link>
      <description>&lt;P&gt;try like below&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM Data.QVD&lt;/P&gt;&lt;P&gt;where floor([&lt;SPAN&gt;end date&lt;/SPAN&gt;])&amp;gt;floor(today());&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 13:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662676#M49799</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-05T13:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load based on Date</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662679#M49800</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It depends a bit on the size of your QVD and whether you need your load to be an &lt;A title="Qlik Optimised Load" href="https://www.quickintelligence.co.uk/qlikview-optimised-qvd-loads/" target="_blank" rel="noopener"&gt;optimised load&lt;/A&gt; or not.&lt;/P&gt;&lt;P&gt;If your QVD is small you can do a WHERE statement, as suggested already.&lt;/P&gt;&lt;P&gt;If you have a large QVD you will want to use a where exists based on all possible future days, something like:&lt;/P&gt;&lt;P&gt;tmpCurrent:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp; &amp;nbsp;Date(today() + RowNo()) as [End Date]&lt;BR /&gt;AUTOGENERATE(1000);&amp;nbsp; // set number based on how far in the future your data could possibly go&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;&amp;nbsp; &amp;nbsp;... insert field list here ...&lt;BR /&gt;FROM [... your qvd ...] (qvd)&lt;BR /&gt;WHERE EXISTS ([End Date]);&lt;BR /&gt;&lt;BR /&gt;DROP TABLE tmpCurrent;&lt;BR /&gt;&lt;BR /&gt;This creates a table of dates that you want to load for and then only loads rows from the QVD where that date is present.&lt;/P&gt;&lt;P&gt;If your End Date field has times in it as well you will need to create a version of the field without the time, e.g.&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;&amp;nbsp; &amp;nbsp; [End Date],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Date(DayStart([End Date]), 'DD MMM YYYY') as [End Date Day],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ...&lt;/P&gt;&lt;P&gt;You will then need to use the End Date Day field in your WHERE EXISTS.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 15:25:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662679#M49800</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2020-01-05T15:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load based on Date</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662689#M49805</link>
      <description>&lt;P&gt;The load statement has an error&lt;/P&gt;&lt;DIV class="headline edc_error"&gt;The following error occurred:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;Unexpected token: '[Date End NPDES Limit]', expected one of: 'biff', 'dif', 'fix', 'html', 'json', 'kml', 'ooxml', ...&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;I believe I need to specify that the file type is&amp;nbsp; a .qvd, but there is also a problem with this syntax:&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;LOAD *&lt;BR /&gt;FROM [lib://abcd.qvd]&lt;BR /&gt;WHERE floor([Date End])&amp;gt;floor(Today());&lt;BR /&gt;(qvd);&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;How should I tweak this for it to work?&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Jan 2020 17:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662689#M49805</guid>
      <dc:creator>firmographs</dc:creator>
      <dc:date>2020-01-05T17:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load based on Date</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662690#M49806</link>
      <description>&lt;DIV class="edc_error"&gt;may be this&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;LOAD *&lt;BR /&gt;FROM [lib://abcd.qvd](qvd)&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;WHERE floor([Date End])&amp;gt;floor(Today());&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Jan 2020 17:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662690#M49806</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-05T17:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Data Load based on Date</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662691#M49807</link>
      <description>&lt;P&gt;You need to have the (qvd) before the WHERE statement and only one semi colon. You also need to specify both the library and QVD name separately:&lt;/P&gt;&lt;DIV class="edc_error"&gt;LOAD *&lt;BR /&gt;FROM [lib://&lt;STRONG&gt;libname/&lt;/STRONG&gt;abcd.qvd] &lt;STRONG&gt;(qvd)&lt;/STRONG&gt;&lt;BR /&gt;WHERE floor([Date End])&amp;gt;floor(Today());&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class="edc_error"&gt;If you can't get it working please copy and paste the entire load statement, as you have it, into the thread.&lt;/DIV&gt;</description>
      <pubDate>Sun, 05 Jan 2020 18:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Load-based-on-Date/m-p/1662691#M49807</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2020-01-05T18:10:46Z</dc:date>
    </item>
  </channel>
</rss>

