<?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 Loop files and variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309528#M709143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shubhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just figured it out. And indeed the Qualifier is gone now. Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Aug 2011 11:33:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-30T11:33:40Z</dc:date>
    <item>
      <title>Loop files and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309526#M709141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've seen some some questions about this problem but they don't seem to suit my particular problem. I have the following issue. I have several data sources from separate business units. They all contain the same data fields and they need to be loaded in the same table but all need a qualifier within the table to retrieve the original source. So I have for two business units:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUELACTIVITY.QVD&lt;/P&gt;&lt;P&gt;GASACTIVITY.QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with qualifiers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Fuel'&lt;/P&gt;&lt;P&gt;'Gas' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script for FUEL looks as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px 'Courier New'; color: #a10000;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;T_ORDERS:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;#OrderID&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;ArgosCompany&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;OrderDate&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;CustomerLocation&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;OrderQuantity&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;OrderQuantity&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;GROUP&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;BY&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;#OrderID&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;ArgosCompany&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;OrderDate&lt;SPAN style="color: #000000;"&gt;,&lt;/SPAN&gt;CustomerLocation&lt;SPAN style="color: #000000;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;SiteId&lt;SPAN style="color: #000000;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;ShiftDate&lt;SPAN style="color: #000000;"&gt;,'DDMMYYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;#OrderID&lt;SPAN style="color: #000000;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Fuel' &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;ArgosCompany&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;ShiftDate&lt;SPAN style="color: #000000;"&gt;, 'DD-MMM-YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;OrderDate&lt;SPAN style="color: #000000;"&gt;, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;SiteId&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;CustomerLocation&lt;SPAN style="color: #000000;"&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;Activity&lt;SPAN style="color: #000000;"&gt; = 'Load', &lt;/SPAN&gt;LoadedQty&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;DeliveredQty&lt;SPAN style="color: #000000;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;AS&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;OrderQuantity&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;FUELACTIVITY.QVD&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;MATCH&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;Source&lt;SPAN style="color: #000000;"&gt;,'DP','DC') &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; ((&lt;/SPAN&gt;Activity&lt;SPAN style="color: #000000;"&gt; = 'Load' &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;Activity&lt;SPAN style="color: #000000;"&gt; = 'Delivery') &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; (&lt;/SPAN&gt;LoadedQty&lt;SPAN style="color: #000000;"&gt; &amp;gt; 0 &lt;/SPAN&gt;&lt;SPAN style="color: #3300ff;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;DeliveredQty&lt;SPAN style="color: #000000;"&gt; &amp;gt; 0))); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I incorporate the looping over several files with qualifiers? If this can be done using an Inline load that would work perfect since there is only a limited number of business units but using an xls could also work. Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers Donald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 09:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309526#M709141</guid>
      <dc:creator />
      <dc:date>2011-08-30T09:17:22Z</dc:date>
    </item>
    <item>
      <title>Loop files and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309527#M709142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Since you are using Flag column ArgosCompany, don't use qualifier. Go for concatenate.&lt;/P&gt;&lt;P&gt;Apart from this there are filelist() available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;Shubhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 11:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309527#M709142</guid>
      <dc:creator />
      <dc:date>2011-08-30T11:05:36Z</dc:date>
    </item>
    <item>
      <title>Loop files and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309528#M709143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shubhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just figured it out. And indeed the Qualifier is gone now. Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 11:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309528#M709143</guid>
      <dc:creator />
      <dc:date>2011-08-30T11:33:40Z</dc:date>
    </item>
    <item>
      <title>Loop files and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309529#M709144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one more question. Right now I'm using an inline statement with LET statements and variables for the Filenames. How would I populate a filelist?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 11:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309529#M709144</guid>
      <dc:creator />
      <dc:date>2011-08-30T11:34:36Z</dc:date>
    </item>
    <item>
      <title>Loop files and variables</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309530#M709146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search for &lt;STRONG&gt;filelist &lt;/STRONG&gt;in the Help&lt;/P&gt;&lt;P&gt;there is an example in the &lt;STRONG&gt;&lt;EM&gt;for each..next&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest is if you can place your infiles in the same directory, and have some wildcard-string that will match all your filenames.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 12:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-files-and-variables/m-p/309530#M709146</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-08-30T12:19:48Z</dc:date>
    </item>
  </channel>
</rss>

