<?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 Divide a Qvd into smaller Qvds by Row Number in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Divide-a-Qvd-into-smaller-Qvds-by-Row-Number/m-p/1705284#M54071</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have a Qvd like this which has several millions of rows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MyTable :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TextField1,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TextField2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM [lib://MyTable.qvd]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And I'd like to divide it into smaller Qvds by row Number, to get QVds of maximum &lt;EM&gt;1 million of rows&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I'm trying to do it applying a where clause with a &lt;STRONG&gt;&lt;EM&gt;Rowno()&lt;/EM&gt;&lt;/STRONG&gt; function with minimum and maximum values, but it's not working.&lt;/P&gt;&lt;P&gt;Anybody has a clue about how to do this?&lt;/P&gt;&lt;P&gt;Best regards, Marcel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:35:20 GMT</pubDate>
    <dc:creator>marcel_olmo</dc:creator>
    <dc:date>2024-11-16T18:35:20Z</dc:date>
    <item>
      <title>Divide a Qvd into smaller Qvds by Row Number</title>
      <link>https://community.qlik.com/t5/App-Development/Divide-a-Qvd-into-smaller-Qvds-by-Row-Number/m-p/1705284#M54071</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have a Qvd like this which has several millions of rows:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MyTable :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TextField1,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TextField2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM [lib://MyTable.qvd]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;(qvd);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And I'd like to divide it into smaller Qvds by row Number, to get QVds of maximum &lt;EM&gt;1 million of rows&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I'm trying to do it applying a where clause with a &lt;STRONG&gt;&lt;EM&gt;Rowno()&lt;/EM&gt;&lt;/STRONG&gt; function with minimum and maximum values, but it's not working.&lt;/P&gt;&lt;P&gt;Anybody has a clue about how to do this?&lt;/P&gt;&lt;P&gt;Best regards, Marcel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Divide-a-Qvd-into-smaller-Qvds-by-Row-Number/m-p/1705284#M54071</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2024-11-16T18:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a Qvd into smaller Qvds by Row Number</title>
      <link>https://community.qlik.com/t5/App-Development/Divide-a-Qvd-into-smaller-Qvds-by-Row-Number/m-p/1705308#M54074</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28589"&gt;@marcel_olmo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maye be :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Data:
LOAD  DIV(rowno(),1000000) as IndexQvd,
	  Field1, 
     Field2
FROM
.\MyTable.qvd
(qvd);

ValueList:
load distinct IndexQvd as Valuelist resident Data;


NumRows=NoOfRows('ValueList');
FOR i=0 to $(NumRows)-1
  LET vBox=Peek('Valuelist',$(i));
  
	 Data$(i):
	 noconcatenate
 	  LOAD * resident Data where IndexQvd='$(i)';
	 
	  store Data$(i) into Data$(i).qvd (qvd);
	  drop table Data$(i);

NEXT

drop table Data,ValueList;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 16:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Divide-a-Qvd-into-smaller-Qvds-by-Row-Number/m-p/1705308#M54074</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-05-26T16:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a Qvd into smaller Qvds by Row Number</title>
      <link>https://community.qlik.com/t5/App-Development/Divide-a-Qvd-into-smaller-Qvds-by-Row-Number/m-p/1705698#M54104</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/56648"&gt;@Taoufiq_Zarra&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 14:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Divide-a-Qvd-into-smaller-Qvds-by-Row-Number/m-p/1705698#M54104</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2020-05-27T14:49:23Z</dc:date>
    </item>
  </channel>
</rss>

