<?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: concatenate in a loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414921#M696720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName" style="font-size: 14px;"&gt;Gysbert &lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;thanks a lot, works perfectly. &lt;/P&gt;&lt;P&gt;I know that is a bad idea but i think is the only one possibility to concatenate qvd's. &lt;/P&gt;&lt;P&gt;1. The loading will be from one table that contain all the datas. (&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;qv_file&lt;/STRONG&gt;&lt;/SPAN&gt;: LOAD * FROM Table where code = &lt;STRONG&gt;var&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;2. With multi-tasking scheduling we run many task of the same qv_file with a parameter (variable). &lt;/P&gt;&lt;P&gt;(in a command line will be: run qv_file /v&lt;STRONG&gt;var=001, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; in another command line will be: run qv_file /v&lt;STRONG&gt;var=002&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;......&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;In this way we got all the data filtered with this variable, to have many qvd's that are called with a name of such variable. (&lt;STRONG&gt;qv_file_001.qvd, qv_file_002.qvd&lt;/STRONG&gt;......)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like that we can run so many task of the same file in parallel (that is not possible to have the same parallelism using QV server)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, in the front end all the qvd's will be concatenated together! And that was my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have another idea for such topic, and about the concatenate? Your idea work so good, but maybe is not good with many datas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, have a nice day!&lt;/P&gt;&lt;P&gt;Paolo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 May 2013 10:07:58 GMT</pubDate>
    <dc:creator>rnepla83</dc:creator>
    <dc:date>2013-05-02T10:07:58Z</dc:date>
    <item>
      <title>concatenate in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414919#M696718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is possible to generate a loop of concatenate, that concatenate the content of some qvd’s files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will follow an example:&lt;/P&gt;&lt;P&gt;Suppose that I have a field in my database that is:&lt;/P&gt;&lt;P&gt;FIELD: {A,B,C,D}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And suppose that I have 4 qvd’s file:&lt;/P&gt;&lt;P&gt;- fileA.qvd&lt;/P&gt;&lt;P&gt;- fileB.qvd&lt;/P&gt;&lt;P&gt;- fileC.qvd&lt;/P&gt;&lt;P&gt;- fileD.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find a way to generate an automatic iteration that generate code like the one below:&lt;/P&gt;&lt;P&gt;Load * &lt;/P&gt;&lt;P&gt;from&amp;nbsp; fileA.qvd&lt;/P&gt;&lt;P&gt;concatenate &lt;/P&gt;&lt;P&gt;Load * &lt;/P&gt;&lt;P&gt;from&amp;nbsp; fileB.qvd&lt;/P&gt;&lt;P&gt;concatenate &lt;/P&gt;&lt;P&gt;Load * &lt;/P&gt;&lt;P&gt;from&amp;nbsp; fileC.qvd&lt;/P&gt;&lt;P&gt;concatenate &lt;/P&gt;&lt;P&gt;Load * &lt;/P&gt;&lt;P&gt;from&amp;nbsp; fileD.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;Can you give me an example of concatenate in a loop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #737373;"&gt;Set NFiles = 4;&lt;BR /&gt; for i = 1 to $(NFiles-1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #737373;"&gt;…………….&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #737373;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;In this sample there are 4 files. In my final qvw will be more than 100 qvd that will be concatenated. &lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;So I need to find a script that generate automatically the concatenate of those files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;Thank you for supporting me.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;Paolo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 14:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414919#M696718</guid>
      <dc:creator>rnepla83</dc:creator>
      <dc:date>2013-04-30T14:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414920#M696719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That sounds like a very bad idea. Your table will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's really what you want try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #f5f5f5; color: #737373; font-family: Arial;"&gt;Result:&lt;/P&gt;&lt;P style="background-color: #f5f5f5; color: #737373; font-family: Arial;"&gt;LOAD * INLINE &lt;A&gt;;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #f5f5f5; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;FOR EACH vFile in FileList('C:\QVDATA\*.qvd')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #f5f5f5; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCATENATE&lt;/P&gt;&lt;P style="background-color: #f5f5f5; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * FROM [$(vFile)] (qvd);&lt;/P&gt;&lt;P style="background-color: #f5f5f5; color: #737373; font-family: Arial;"&gt;NEXT vFile&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 15:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414920#M696719</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-30T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414921#M696720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName" style="font-size: 14px;"&gt;Gysbert &lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;thanks a lot, works perfectly. &lt;/P&gt;&lt;P&gt;I know that is a bad idea but i think is the only one possibility to concatenate qvd's. &lt;/P&gt;&lt;P&gt;1. The loading will be from one table that contain all the datas. (&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;qv_file&lt;/STRONG&gt;&lt;/SPAN&gt;: LOAD * FROM Table where code = &lt;STRONG&gt;var&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;2. With multi-tasking scheduling we run many task of the same qv_file with a parameter (variable). &lt;/P&gt;&lt;P&gt;(in a command line will be: run qv_file /v&lt;STRONG&gt;var=001, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; in another command line will be: run qv_file /v&lt;STRONG&gt;var=002&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;......&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;In this way we got all the data filtered with this variable, to have many qvd's that are called with a name of such variable. (&lt;STRONG&gt;qv_file_001.qvd, qv_file_002.qvd&lt;/STRONG&gt;......)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like that we can run so many task of the same file in parallel (that is not possible to have the same parallelism using QV server)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that, in the front end all the qvd's will be concatenated together! And that was my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have another idea for such topic, and about the concatenate? Your idea work so good, but maybe is not good with many datas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, have a nice day!&lt;/P&gt;&lt;P&gt;Paolo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 10:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414921#M696720</guid>
      <dc:creator>rnepla83</dc:creator>
      <dc:date>2013-05-02T10:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414922#M696721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 08:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414922#M696721</guid>
      <dc:creator>rnepla83</dc:creator>
      <dc:date>2013-05-07T08:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: concatenate in a loop</title>
      <link>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414923#M696722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the special caracter * like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from&amp;nbsp; file*.qvd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 14:10:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/concatenate-in-a-loop/m-p/414923#M696722</guid>
      <dc:creator />
      <dc:date>2014-05-26T14:10:13Z</dc:date>
    </item>
  </channel>
</rss>

