<?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: Rolling 3 years Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078263#M359586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;I guess you need to show what your current script is. Without knowing that, it would be difficult to suggest anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2016 01:41:07 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-05T01:41:07Z</dc:date>
    <item>
      <title>Rolling 3 years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078260#M359583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to hold the latest 3 years data in my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While doing full load in generator, i am using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vThreeyears=Addyears(today(),-3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where modifieddate&amp;lt;=($vNow) and modifieddate&amp;gt;=($vThreeyears)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i am doing incremental load daily once, every day one day records are added, so i need to remove 3 years back one day records. How can i remove one day records which is first day in my existing QVD (3 years back date)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this? If i do it at generator level, i do not need to filter data at report level, so i can read optimized QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raju.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 01:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078260#M359583</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-05-05T01:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078261#M359584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use this&lt;/P&gt;&lt;P&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;STRONG&gt;LET vThreeyears=Addyears(today(),-3) &lt;SPAN style="color: #ff0000;"&gt;+ 1&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 01:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078261#M359584</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-05T01:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078262#M359585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply, while doing incremental load i should maintain always latest 3 years data in my final QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know where can i use above variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 01:37:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078262#M359585</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-05-05T01:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078263#M359586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;I guess you need to show what your current script is. Without knowing that, it would be difficult to suggest anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 01:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078263#M359586</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-05T01:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078264#M359587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try to send sample script soon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the more explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have last years data in my database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if $(vLoadType)=0&amp;nbsp; // Full Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;From Table&lt;/P&gt;&lt;P&gt;where where modifieddate&amp;lt;=($vNow) and modifieddate&amp;gt;=($vThreeyears) // i am taking data from 05/06/2013 to today.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if $(vLoadType)=1&amp;nbsp; // Incremental Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am taking latest one day records and adding to my existing qvd (as i have only inserted records)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After one year, i will have records from 05/06/2013 to 05/06/2017 (4 years data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, everyday i want to drop records those are available with least date in my existing QVD. If i add data of 05/05/2016 to my base QVD, then i need to drop records of 05/05/2013 from base QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will give some idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 01:53:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078264#M359587</guid>
      <dc:creator>raju_salmon</dc:creator>
      <dc:date>2016-05-05T01:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 3 years Data</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078265#M359588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a resident load where you drop the latest date from the cumulative qvd and then add that most recent data for today. Something along these lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;If $(vLoadType)=0&amp;nbsp; // Full Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Load &lt;SPAN style="line-height: 1.5em;"&gt;*&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;From DataSource.Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Where modifieddate&amp;lt;=($vNow) and modifieddate&amp;gt;=($vThreeyears);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;STORE Table into Main.qvd (qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DROP Table Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If $(vLoadType) = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM Main.qvd(qvd)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;modifieddate &amp;lt;&amp;gt; AddYears(Today(), -3);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Concatenate(Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM DataSource.Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;modifieddate = Today();&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;STORE Table into Main.qvd (qvd);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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 style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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>Thu, 05 May 2016 02:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-3-years-Data/m-p/1078265#M359588</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-05T02:02:05Z</dc:date>
    </item>
  </channel>
</rss>

