<?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: load only specific years from gvd-file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134585#M603893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;Where &lt;STRONG&gt;Year ([datum (pzdnkal.datum)])&amp;gt;= 2017&amp;nbsp; And&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;Year ([datum (pzdnkal.datum)]) &lt;/SPAN&gt;&amp;lt;= 2018;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;Where &lt;STRONG&gt;WildMatch(Year ([datum (pzdnkal.datum)]), '2017', '&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;2018');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2018 06:15:46 GMT</pubDate>
    <dc:creator>tamilarasu</dc:creator>
    <dc:date>2018-08-01T06:15:46Z</dc:date>
    <item>
      <title>load only specific years from gvd-file</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134580#M603888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Good day dear QlikView community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;I have already learned a lot from this forum, now it's time for my first question, because unfortunately I have not found a suitable answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; text-decoration: underline;"&gt;Following problem:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;I load data from a QVD file, more specifically planning data for the presence of employees. The script always uses the complete data set (STARTING WITH YEAR 2007), but I only need the data starting with 2017 (--&amp;gt; year 2017 and 2018).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Each line has a posting date and is loaded as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;date ([date (pzdnkal.date)]) as the posting-date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;[pnr (pzdnkal.pnr)] as person number,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;etc.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="SV" style="color: black;"&gt;$ (V21_Datamodel_QVD) DimPersPlanungsdaten.qvd (QVD)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;fyi: The data is outputed in the format dd.mm.yyyy, i.e. 26.05.2017.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;My question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Which command should I give after this line (... the posting date) so that only the years 2017 and 2018 will be loaded?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;If further information is needed I can indicate this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Thank you very much and best regards from Vienna,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Jakob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Additive:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Same problem I have with another database. Here, however, the values ​​are always combined with the time "00:00:00", e.g. a value is given as "26.05.2009 00:00:00".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Again, I only want values ​​starting from 2017 (--&amp;gt; so 2017 &amp;amp; 2018), and without the clock addition, since it is always "00:00:00" anyway.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="color: black;"&gt;Thank you very much!&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 09:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134580#M603888</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-07-27T09:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: load only specific years from gvd-file</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134581#M603889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jakob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you said you have a date type field on your QVD, you could simply do something lik:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVDLoad:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;From [QVDName.qvd] (qvd)&lt;/P&gt;&lt;P&gt;where year(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;pzdnkal.date)&amp;gt;=2017;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;That is, assuming your date field is interpreted as a number on qlikview (42000 style number, like Excel date format).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This will only load specific records, won't be a optimized QVD load and will only get the dates that have the year correspondence greater than 2017 (so giving you 2017 and 2018).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;For the second database, you can use the floor() statement to get the integer part of the timestamp field you need.]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Like so:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;QVDLoad:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load *&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;From [QVDName.qvd] (qvd)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;where Year(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;floor([Date Field]))&amp;gt;=2017&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 18:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134581#M603889</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-07-30T18:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: load only specific years from gvd-file</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134582#M603890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Felip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;thank you very much, both worked pretty well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one last question concerning this topic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i load like this, I get the years 2017, 2018 &lt;SPAN style="text-decoration: underline;"&gt;AND&lt;/SPAN&gt; 2019, but I only need 2017 &amp;amp; 2018.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried some scripting, but it did not work. I tried like:&lt;/P&gt;&lt;P&gt;"where year (pzdnkal.date)&amp;gt;=2017 &amp;amp; &amp;lt;=2019"&lt;/P&gt;&lt;P&gt;"where year (pzdnkal.date) =2017 + 2018"&lt;/P&gt;&lt;P&gt;"where year (pzdnkal.date) =2017 &amp;amp; 2018"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a command for this issue as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;Jakob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 05:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134582#M603890</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-07-31T05:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: load only specific years from gvd-file</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134583#M603891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First one was almost correct&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"where year (pzdnkal.date)&amp;gt;=2017 &amp;amp; &amp;lt;2019"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Since you used &amp;lt;= it gets the year 2019 also&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"where year (pzdnkal.date)&amp;gt;=2017 &amp;amp; &amp;lt;=2018"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 16:46:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134583#M603891</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2018-07-31T16:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: load only specific years from gvd-file</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134584#M603892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Felip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this solution doesn't work in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my skript:&lt;/P&gt;&lt;P&gt;where year (([datum (pzdnkal.datum)]))&amp;gt;=2017 &amp;amp; &amp;lt;2019&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i run the script, it tells me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;field "a" not found. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it means the"&amp;amp;". &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Do you know how to deal with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 05:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134584#M603892</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-08-01T05:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: load only specific years from gvd-file</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134585#M603893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;Where &lt;STRONG&gt;Year ([datum (pzdnkal.datum)])&amp;gt;= 2017&amp;nbsp; And&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-size: 13px;"&gt;Year ([datum (pzdnkal.datum)]) &lt;/SPAN&gt;&amp;lt;= 2018;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;Where &lt;STRONG&gt;WildMatch(Year ([datum (pzdnkal.datum)]), '2017', '&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;2018');&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134585#M603893</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-08-01T06:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: load only specific years from gvd-file</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134586#M603894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this works fine, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you Tamil!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134586#M603894</guid>
      <dc:creator>jakobjosef</dc:creator>
      <dc:date>2018-08-01T06:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: load only specific years from gvd-file</title>
      <link>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134587#M603895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where Year(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;floor([Date Field]))&amp;gt;=2017 and Year(&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;floor([Date Field]))&amp;lt;2019;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 06:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-only-specific-years-from-gvd-file/m-p/134587#M603895</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-08-01T06:22:45Z</dc:date>
    </item>
  </channel>
</rss>

