<?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: Split Huge QVD into Day wise QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662365#M729136</link>
    <description>&lt;P&gt;you can do something like below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let vQVDPath ='lib://QVDPath/Qvd/';

let vStoreQVDPath ='lib://StoreQVDPath/Qvd/';

let vSartDate = floor(MakeDate(2018,1,1));

let vEndDate = floor(Today());

for i= vSartDate to vEndDate

let vDate = Date($(i),'YYYYMMDD');

Data:
Load *
FROM [$(vQVDPath)ABC_QVD.qvd]
Where Floor(YourDateFieldInQVD)=$(i);

Store Data into '$(vStoreQVDPath)ABC_QVD_$(vDate).qvd';

Drop Table Data;

Next

let i=i+1;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt; Change variables according to your requirements.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2020 10:40:13 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-01-03T10:40:13Z</dc:date>
    <item>
      <title>Split Huge QVD into Day wise QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662295#M729134</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a huge QVD which is around 20GB with 2 Years of data. I want to split the QVD into Daywise. One day date to be load into one QVD. ex:ABC_QVD_20191220,&amp;nbsp;ABC_QVD_20191221,&amp;nbsp;ABC_QVD_20191222.....&lt;/P&gt;&lt;P&gt;Using For loop, I'm able to identify the mindate and maxdate, But my for loop is not wrking.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662295#M729134</guid>
      <dc:creator>viveksingh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Split Huge QVD into Day wise QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662317#M729135</link>
      <description>&lt;P&gt;any inputs on this please&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 06:48:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662317#M729135</guid>
      <dc:creator>viveksingh</dc:creator>
      <dc:date>2020-01-03T06:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Split Huge QVD into Day wise QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662365#M729136</link>
      <description>&lt;P&gt;you can do something like below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let vQVDPath ='lib://QVDPath/Qvd/';

let vStoreQVDPath ='lib://StoreQVDPath/Qvd/';

let vSartDate = floor(MakeDate(2018,1,1));

let vEndDate = floor(Today());

for i= vSartDate to vEndDate

let vDate = Date($(i),'YYYYMMDD');

Data:
Load *
FROM [$(vQVDPath)ABC_QVD.qvd]
Where Floor(YourDateFieldInQVD)=$(i);

Store Data into '$(vStoreQVDPath)ABC_QVD_$(vDate).qvd';

Drop Table Data;

Next

let i=i+1;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt; Change variables according to your requirements.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 10:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662365#M729136</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-01-03T10:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Split Huge QVD into Day wise QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662366#M729137</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Below is the script that we used to split a large QVD, you will of course need to adapt it to your QVD and field names, also the where clause will need changing and where you are storing the daily QVD files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vMinDate = Floor(MakeDate(2014,11,10));&lt;/P&gt;&lt;P&gt;vMaxDate = Floor(MakeDate(2016,06,09));&lt;/P&gt;&lt;P&gt;For i = vMinDate TO vMaxDate&lt;BR /&gt;Let vQVDDate = Date($(i),'YYYYMMDD');&lt;BR /&gt;Readings:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM Meter_Readings.qvd (qvd)&lt;BR /&gt;WHERE Floor(ReadingDate) = $(i);&lt;BR /&gt;If NoOfRows('Readings') &amp;gt; 0 Then&lt;BR /&gt;STORE Readings into QVD\Meter_Readings_$(vQVDDate).qvd (qvd);&lt;BR /&gt;ENDIF&lt;BR /&gt;DROP Table Readings;&lt;BR /&gt;Next i&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 10:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662366#M729137</guid>
      <dc:creator>atoz1158</dc:creator>
      <dc:date>2020-01-03T10:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Split Huge QVD into Day wise QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662603#M729138</link>
      <description>&lt;P&gt;Thanks for the reply. I tried the same way. but my for loop is not working. Below is the that I used.&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp;&lt;/P&gt;&lt;P&gt;* from Sales_QVD(qvd);&lt;/P&gt;&lt;P&gt;Let&amp;nbsp; vMin_Date=Date(Min(FLoor(FilterDate)),'YYYYMMDD') ;&lt;BR /&gt;Let&amp;nbsp; vMax_Date=Date(Max(FLoor(FilterDate)),'YYYYMMDD') ;&lt;/P&gt;&lt;P&gt;For i =&amp;nbsp;vMin_Date to&amp;nbsp;vMax_Date&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;resident sales where date=vMin_Date;&lt;/P&gt;&lt;P&gt;store data into sales_$(vMin_Date).qvd(qvd);&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jan 2020 04:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662603#M729138</guid>
      <dc:creator>viveksingh</dc:creator>
      <dc:date>2020-01-04T04:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Split Huge QVD into Day wise QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662811#M729139</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using the following code which you should not need to change&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;* from Sales_QVD(qvd);&lt;/P&gt;&lt;P&gt;Let vMin_Date=Date(Min(FLoor(FilterDate)),'YYYYMMDD') ;&lt;BR /&gt;Let vMax_Date=Date(Max(FLoor(FilterDate)),'YYYYMMDD') ;&lt;/P&gt;&lt;P&gt;For i = vMin_Date TO vMax_Date&lt;/P&gt;&lt;P&gt;Let vQVDDate = Date($(i),'YYYYMMDD');&lt;/P&gt;&lt;P&gt;data:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;LOAD *&lt;BR /&gt;resident sales where date = $(i);&lt;/P&gt;&lt;P&gt;If NoOfRows('data') &amp;gt; 0 Then&lt;BR /&gt;STORE data into sales_$(vQVDDate).qvd (qvd);&lt;BR /&gt;ENDIF&lt;/P&gt;&lt;P&gt;DROP Table data;&lt;/P&gt;&lt;P&gt;Next i&lt;/P&gt;&lt;P&gt;Regrads&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 09:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1662811#M729139</guid>
      <dc:creator>atoz1158</dc:creator>
      <dc:date>2020-01-06T09:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Split Huge QVD into Day wise QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1667897#M729140</link>
      <description>&lt;P&gt;Vivek, did Atoz's latest post get you what you needed?&amp;nbsp; If so, do not forget to return to your thread and use the Accept as Solution button on the post to mark that as the solution, which will give Atoz credit for the help and let other Community Members know that worked.&amp;nbsp; If you need further help, leave an update post.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 20:35:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-Huge-QVD-into-Day-wise-QVD/m-p/1667897#M729140</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-01-21T20:35:45Z</dc:date>
    </item>
  </channel>
</rss>

