<?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 Split one big QVD file into multiple in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222304#M74984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DV - I think conditional load means placing a where clause during the QVD creation. If my understanding is correct, then YES I did tried it. But in this way I have to execute my script 10 times by changing the where caluse and QVD file name.&lt;/P&gt;&lt;P&gt;Is there any way (loop or automation) where I can automate this?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 16:20:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-19T16:20:13Z</dc:date>
    <item>
      <title>Split one big QVD file into multiple</title>
      <link>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222302#M74982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have one big QVD file (Policy.QVD) with 50 fields. I would like to split this file in to multiple QVD files.&lt;/P&gt;&lt;P&gt;The QVD file has a field Policy Year and I want to create one QVD file per policy year. As I have 10 years data in my QVD, I would except to see 10 different QVD files. Each QVD file should be named as Policy&amp;lt;PolicyYear&amp;gt;.qvd.&lt;/P&gt;&lt;P&gt;Could any one please let me how can I do this in QlikView?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 15:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222302#M74982</guid>
      <dc:creator />
      <dc:date>2011-04-19T15:05:29Z</dc:date>
    </item>
    <item>
      <title>Split one big QVD file into multiple</title>
      <link>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222303#M74983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Muralidhar Koti - Have you considered QVD Conditional Load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 16:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222303#M74983</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-04-19T16:15:12Z</dc:date>
    </item>
    <item>
      <title>Split one big QVD file into multiple</title>
      <link>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222304#M74984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DV - I think conditional load means placing a where clause during the QVD creation. If my understanding is correct, then YES I did tried it. But in this way I have to execute my script 10 times by changing the where caluse and QVD file name.&lt;/P&gt;&lt;P&gt;Is there any way (loop or automation) where I can automate this?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 16:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222304#M74984</guid>
      <dc:creator />
      <dc:date>2011-04-19T16:20:13Z</dc:date>
    </item>
    <item>
      <title>Split one big QVD file into multiple</title>
      <link>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222305#M74985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, maybe something like this&lt;/P&gt;&lt;P&gt;For vYear = 2000 to 2010 //this can be change by an "for each" clause&lt;/P&gt;&lt;P&gt;MainTable:&lt;BR /&gt;Load&lt;BR /&gt;fields....&lt;BR /&gt;from master.qvd(qvd)&lt;BR /&gt;where&lt;BR /&gt;FieldYear = $(vYear);&lt;/P&gt;&lt;P&gt;Store MainTable into Policy_$(vYear),qvd;&lt;BR /&gt;drop table MainTable; //this is only to avoid the autoconcatenation feature&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;Goog luck &amp;amp; Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 16:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222305#M74985</guid>
      <dc:creator>hector</dc:creator>
      <dc:date>2011-04-19T16:31:53Z</dc:date>
    </item>
    <item>
      <title>Split one big QVD file into multiple</title>
      <link>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222306#M74986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Muralidhar,&lt;/P&gt;&lt;P&gt;the loop will look like this:&lt;/P&gt;&lt;P&gt;for each Year in '2001','2002','2003','2004'&lt;/P&gt;&lt;P&gt;Policy:&lt;/P&gt;&lt;P&gt;Load * from Policy.qvd (qvd) where PolicyYear = $(Year);&lt;/P&gt;&lt;P&gt;Store Policy Into Policy$(Year).qvd&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;For more info about loops check "For each .. next" and "For .. next" in QV help&lt;/P&gt;&lt;P&gt;Hope this helped!&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 16:37:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222306#M74986</guid>
      <dc:creator />
      <dc:date>2011-04-19T16:37:20Z</dc:date>
    </item>
    <item>
      <title>Split one big QVD file into multiple</title>
      <link>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222307#M74987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The "for each" sample that will work even when non consecutive years (I wrote it before but it wasn't posted):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;AllPossibleYearsTable:LOAD Chr(39) &amp;amp; CONCAT(DISTINCT "Policy Year", Chr(39) &amp;amp; Chr(44) &amp;amp; Chr(39)) &amp;amp; Chr(39) AS PossibleYearsFROM LargeFile.qvd (qvd); LET vAllPossibleYears = FieldValue('AllPossibleYearsTable', 1); DROP TABLE AllPossibleYearsTable; FOR EACH vYear IN $(vAllPossibleYears) CurrentYear: LOAD * FROM LargeFile.qvd (qvd) WHERE "Policy Year" = $(vYear); STORE CurrentYear INTO Policy$(vYear).qvd; DROP TABLE CurrentYear;NEXT&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The first CONCAT load and the play with variables is because FOR EACH needs a comma separated list of values. I've quoted them (chr(39)) but you may not need it, since if variables are numeric, they don't need to be quoted.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 16:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222307#M74987</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-19T16:39:03Z</dc:date>
    </item>
    <item>
      <title>Split one big QVD file into multiple</title>
      <link>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222308#M74988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend a few minor changes over Miguel's code if you have large volume.&lt;/P&gt;&lt;P&gt;First, I will just do a For over all years regardless of whether you have info or not, just delete empty files afterwards, also use exists instead of where so loads will be optimized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;FOR vYear = 2000 to 2011&lt;/PRE&gt;&lt;PRE&gt;AuxYear:&lt;/PRE&gt;&lt;PRE&gt;LOAD $(vYear) AS [Policy Year]&lt;/PRE&gt;&lt;PRE&gt;autogenerate(1);&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;CurrentYear: LOAD * FROM LargeFile.qvd (qvd) WHERE exists([Policy Year]); STORE CurrentYear INTO Policy$(vYear).qvd; DROP TABLE CurrentYear;&lt;/PRE&gt;&lt;PRE&gt;DROP TABLE AuxYear;NEXT&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 17:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Split-one-big-QVD-file-into-multiple/m-p/222308#M74988</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2011-04-19T17:26:46Z</dc:date>
    </item>
  </channel>
</rss>

