<?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 QVD Split into 5 days in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721186#M54853</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have a requirement of splitting up of monthly QVDs into 5 days QVDs.&lt;/P&gt;&lt;P&gt;Like from 1st till 5th date data must be stored in one qvd, from 6th till 10th in 2nd qvd, from 11th till 15th in 3rd, from 20th till 25th in 4th and after 26th till monthend in 6th qvd.&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:27:16 GMT</pubDate>
    <dc:creator>sunainapawar</dc:creator>
    <dc:date>2024-11-16T18:27:16Z</dc:date>
    <item>
      <title>QVD Split into 5 days</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721186#M54853</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have a requirement of splitting up of monthly QVDs into 5 days QVDs.&lt;/P&gt;&lt;P&gt;Like from 1st till 5th date data must be stored in one qvd, from 6th till 10th in 2nd qvd, from 11th till 15th in 3rd, from 20th till 25th in 4th and after 26th till monthend in 6th qvd.&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721186#M54853</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2024-11-16T18:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Split into 5 days</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721210#M54857</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;DIV&gt;&lt;FONT&gt;If you have date field in the qvd then create Day Number column in the Monthly QVD then you can try below script&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;for i=0 to 5
        Variable1=5*($(i))+1;
        Variable2=If ($(i)=5,31,5*($(i)+1));
 
Noconcatenate
Table:
Load *
From QVDNAME
where DayField&amp;gt;='$(Variable1)' and DayField&amp;lt;='$(Variable2)';
Store Table into QVDNAME$(i).qvd(QVD);
drop table Table;
next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Let me know if this code work or you require more details.&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 23 Jun 2020 09:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721210#M54857</guid>
      <dc:creator>shwethaa</dc:creator>
      <dc:date>2020-06-23T09:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Split into 5 days</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721239#M54858</link>
      <description>&lt;P&gt;Hi Shwetha,&lt;/P&gt;&lt;P&gt;Thanks for quick response.&lt;/P&gt;&lt;P&gt;I will try and let you know if its working fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 11:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721239#M54858</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2020-06-23T11:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Split into 5 days</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721259#M54861</link>
      <description>&lt;P&gt;Hi Shwethaa,&lt;/P&gt;&lt;P&gt;The solution is working perfectly fine. But i need the QVDs name to be included with the YYYYMMDD&amp;nbsp; like below.&lt;/P&gt;&lt;P&gt;Can you please help on same.&lt;/P&gt;&lt;P&gt;1st qvd-qvdname_20200605.qvd&lt;/P&gt;&lt;P&gt;2nd qvd-qvdname_20200610.qvd&lt;/P&gt;&lt;P&gt;3rd qvd-qvdname_20200615.qvd&lt;/P&gt;&lt;P&gt;4th qvd-qvdname_20200620.qvd&lt;/P&gt;&lt;P&gt;5th qvd-qvdname_2020625.qvd&lt;/P&gt;&lt;P&gt;6th qvd-qvdname_20200631.qvd.&lt;/P&gt;&lt;P&gt;Basically the max date from each range(1st to 5th, 6th to 10th,11th to 15th,16th to 20th,21st to 25th and 26th till monthend) and store the name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 11:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721259#M54861</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2020-06-23T11:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Split into 5 days</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721323#M54868</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can update the code as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;for i=0 to 5
        Variable1=5*($(i))+1;
        Variable2=If ($(i)=5,31,5*($(i)+1)); 
Noconcatenate
Table:
Load *
From QVDNAME
where DayField&amp;gt;='$(Variable1)' and DayField&amp;lt;='$(Variable2)';

Noconcatenate
MaxDate:
Load Max(Date_Field) as MaxDate
Resident Table;

Let vMaxDate=peek('MaxDate');  //Convert to require date format using date#  and Date function
Drop table MaxDate;

Store Table into [qvd-qvdname'$(vMaxDate)'.qvd](QVD);

drop table Table;
next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you feel data set is huge in the qvd and max take time to load then use Variable2 for i=1 to 4 and calculate maxdate only for i=5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shwetha A&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 14:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721323#M54868</guid>
      <dc:creator>shwethaa</dc:creator>
      <dc:date>2020-06-23T14:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Split into 5 days</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721565#M54891</link>
      <description>&lt;P&gt;Hi Shwetha,&lt;/P&gt;&lt;P&gt;Below solution worked.&lt;/P&gt;&lt;P&gt;Thank you so much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 06:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-Split-into-5-days/m-p/1721565#M54891</guid>
      <dc:creator>sunainapawar</dc:creator>
      <dc:date>2020-06-24T06:22:16Z</dc:date>
    </item>
  </channel>
</rss>

