<?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' file generator depending on a query result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/qvd-file-generator-depending-on-a-query-result/m-p/248738#M709388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I want to create a loader script which stores qvd files with postfixes depending on a query result. (For example &lt;/P&gt;&lt;P&gt;if query result is 1,2,5,7 then file names are: file1.qvd, file2.qvd, file5.qvd, file7.qvd)&lt;/P&gt;&lt;P&gt;What should I use for iteration to avoid files for non-existing numbers in query ("gaps in the row")? &lt;/P&gt;&lt;P&gt;I would be grateful for working examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2011 13:05:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-04T13:05:16Z</dc:date>
    <item>
      <title>'qvd' file generator depending on a query result</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-file-generator-depending-on-a-query-result/m-p/248738#M709388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I want to create a loader script which stores qvd files with postfixes depending on a query result. (For example &lt;/P&gt;&lt;P&gt;if query result is 1,2,5,7 then file names are: file1.qvd, file2.qvd, file5.qvd, file7.qvd)&lt;/P&gt;&lt;P&gt;What should I use for iteration to avoid files for non-existing numbers in query ("gaps in the row")? &lt;/P&gt;&lt;P&gt;I would be grateful for working examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 13:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-file-generator-depending-on-a-query-result/m-p/248738#M709388</guid>
      <dc:creator />
      <dc:date>2011-08-04T13:05:16Z</dc:date>
    </item>
    <item>
      <title>'qvd' file generator depending on a query result</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-file-generator-depending-on-a-query-result/m-p/248739#M709389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guy, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example&amp;nbsp; that I create to show you what you could do. You can use this script like this in a new document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my script :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// First you declare your table&lt;/P&gt;&lt;P&gt;table1:&lt;BR /&gt;load * inline [&lt;BR /&gt;val1, dep&lt;BR /&gt;12 , aa&amp;nbsp; &lt;BR /&gt;123, aa&lt;BR /&gt;223, bb&lt;BR /&gt;233, cc&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// you make a loop for each row of your table&lt;BR /&gt;for i = 1 to NoOfRows('table1')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp; you can get the name of the field that you want&lt;BR /&gt;&amp;nbsp;&amp;nbsp; let vField = FieldName(1,'table1');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // you can get the value of a field like this&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LET vfieldvalue = FieldValue('$(vField)',$(i));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //you can store like this with a concatenation of the value of your data and a generic string&lt;BR /&gt;&amp;nbsp;&amp;nbsp; store * from table1 into test &amp;amp; $(vfieldvalue).qvd ;&lt;/P&gt;&lt;P&gt;next i&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example wil create 4 qvd named like this : &lt;/P&gt;&lt;P&gt;test12.qvd, test123.qvd, test223.qvd, test233.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that it will help you. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 15:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-file-generator-depending-on-a-query-result/m-p/248739#M709389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-04T15:35:46Z</dc:date>
    </item>
    <item>
      <title>'qvd' file generator depending on a query result</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-file-generator-depending-on-a-query-result/m-p/248740#M709390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;this is a littlee Script based on a german Northwind DB:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ODBC CONNECT TO Nordwind;&lt;/P&gt;&lt;P&gt;Customer:&lt;BR /&gt;SQL SELECT Firma as Company, //field is not null&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; KundenCode,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Land,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ort,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Region&lt;BR /&gt;FROM nordwind.kunden;&lt;/P&gt;&lt;P&gt;Counter:&lt;BR /&gt;Load num(count(Company)) as Number&lt;BR /&gt;resident Customer;&lt;/P&gt;&lt;P&gt;Let varNumberEnd = num(Peek('Number',-1,'Counter'));&lt;/P&gt;&lt;P&gt;for a=0 to $(varNumberEnd)-1&lt;BR /&gt; &lt;BR /&gt; Let varCompany = Peek('Company',$(a),'Customer');&lt;BR /&gt; &lt;BR /&gt; [StoreCust$(varCompany)]:&lt;BR /&gt; noconcatenate load * &lt;BR /&gt; resident Customer&lt;BR /&gt; where '$(varCompany)'=Company;&lt;BR /&gt; &lt;BR /&gt;store [StoreCust$(varCompany)] into 'StoreCust'&amp;amp;$(varCompany).qvd;&lt;BR /&gt;drop table [StoreCust$(varCompany)];&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sabine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 15:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-file-generator-depending-on-a-query-result/m-p/248740#M709390</guid>
      <dc:creator />
      <dc:date>2011-08-04T15:39:40Z</dc:date>
    </item>
    <item>
      <title>'qvd' file generator depending on a query result</title>
      <link>https://community.qlik.com/t5/QlikView/qvd-file-generator-depending-on-a-query-result/m-p/248741#M709391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thank You!. In fact I found an answer from other question ( &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/7705#7705"&gt;http://community.qlik.com/message/7705#7705&lt;/A&gt;&lt;SPAN&gt; ), but yours is the closest to the solution that I implemented, so I count it for correct answer.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 07:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qvd-file-generator-depending-on-a-query-result/m-p/248741#M709391</guid>
      <dc:creator />
      <dc:date>2011-08-05T07:30:29Z</dc:date>
    </item>
  </channel>
</rss>

