<?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 Load a yearly snapshot of data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-a-yearly-snapshot-of-data/m-p/277585#M1204018</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 need to read in a yearly snapshot of data. I can write the code in a SQL procedure like this:&lt;/P&gt;&lt;P&gt;SET @MaxDate = '2010-08-15'&lt;BR /&gt;SET @CurrentDate = '2000-08-15'&lt;/P&gt;&lt;P&gt;WHILE @CurrentDate &amp;lt;= @MaxDate&lt;BR /&gt; SELECT DATA1&lt;BR /&gt; FROM TABLE&lt;BR /&gt; WHERE DATE = @CurrentDate&lt;/P&gt;&lt;P&gt;SELECT @CurrentDate = DATEADD(yy, 1,@CurrentDate)&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;How can I write the equivalent logic using QlikView syntax?&lt;BR /&gt;I am not sure how to structure the loop and how to increment the date.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Sep 2010 23:38:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-09-20T23:38:41Z</dc:date>
    <item>
      <title>Load a yearly snapshot of data</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-yearly-snapshot-of-data/m-p/277585#M1204018</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 need to read in a yearly snapshot of data. I can write the code in a SQL procedure like this:&lt;/P&gt;&lt;P&gt;SET @MaxDate = '2010-08-15'&lt;BR /&gt;SET @CurrentDate = '2000-08-15'&lt;/P&gt;&lt;P&gt;WHILE @CurrentDate &amp;lt;= @MaxDate&lt;BR /&gt; SELECT DATA1&lt;BR /&gt; FROM TABLE&lt;BR /&gt; WHERE DATE = @CurrentDate&lt;/P&gt;&lt;P&gt;SELECT @CurrentDate = DATEADD(yy, 1,@CurrentDate)&lt;BR /&gt;END&lt;/P&gt;&lt;P&gt;How can I write the equivalent logic using QlikView syntax?&lt;BR /&gt;I am not sure how to structure the loop and how to increment the date.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Sep 2010 23:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-yearly-snapshot-of-data/m-p/277585#M1204018</guid>
      <dc:creator />
      <dc:date>2010-09-20T23:38:41Z</dc:date>
    </item>
  </channel>
</rss>

