<?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: to delete 1 month data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302236#M844967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load statement, just add a filter condition like below.&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Field2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Field3,&lt;/P&gt;&lt;P&gt;;WHERE YourDateField &amp;gt;=MonthStart( AddYears(Today(),-1));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2017 01:59:25 GMT</pubDate>
    <dc:creator>Siva_Sankar</dc:creator>
    <dc:date>2017-04-12T01:59:25Z</dc:date>
    <item>
      <title>to delete 1 month data</title>
      <link>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302233#M844964</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;I am having quick question:&lt;/P&gt;&lt;P&gt;QVD will hold data for 1 year only, if new data has come then older data will be removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg: Current month is Apr, so my QVD will have the data staring from month May 16 to Apr 17. If my current month is May17 then it should hold data for month June16 to May 17. QVD should not have data for Apr16 month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302233#M844964</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: to delete 1 month data</title>
      <link>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302234#M844965</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;Which DB are you using. If you SQL server as DB, try below query to get the Start Date and use it in your where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-size: 10pt;"&gt;dateadd&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-size: 10pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-size: 10pt;"&gt;datediff&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-size: 10pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; 0&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff00ff; font-size: 10pt;"&gt;getdate&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;())-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;12&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 18:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302234#M844965</guid>
      <dc:creator>krishnacbe</dc:creator>
      <dc:date>2017-04-11T18:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: to delete 1 month data</title>
      <link>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302235#M844966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using any DB here. As stated My QVD should have data of last 1 year only.&lt;/P&gt;&lt;P&gt;Also, shared expression is not working here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 01:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302235#M844966</guid>
      <dc:creator />
      <dc:date>2017-04-12T01:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: to delete 1 month data</title>
      <link>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302236#M844967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load statement, just add a filter condition like below.&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Field2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Field3,&lt;/P&gt;&lt;P&gt;;WHERE YourDateField &amp;gt;=MonthStart( AddYears(Today(),-1));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 01:59:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302236#M844967</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2017-04-12T01:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: to delete 1 month data</title>
      <link>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302237#M844968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the where condition, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;WHERE YourDateField &amp;gt;=MonthStart( AddYears(Today(),-1));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the condition &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MonthStart( AddYears(Today(),-1))&lt;/SPAN&gt; is giving last 12 month date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not working. I am attaching here sample input file and qvw for reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 02:27:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302237#M844968</guid>
      <dc:creator />
      <dc:date>2017-04-12T02:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: to delete 1 month data</title>
      <link>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302238#M844969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rohit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the attached qvw, it works for me.&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 02:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/to-delete-1-month-data/m-p/1302238#M844969</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2017-04-12T02:38:47Z</dc:date>
    </item>
  </channel>
</rss>

