<?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: multiple loads in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315290#M847385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/62449"&gt;loop through to load all files from a folder and its subfolders?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Mar 2017 01:39:36 GMT</pubDate>
    <dc:creator>Siva_Sankar</dc:creator>
    <dc:date>2017-03-31T01:39:36Z</dc:date>
    <item>
      <title>multiple loads</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315289#M847384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have many excel files with the same starting name but for different month and years&lt;/P&gt;&lt;P&gt;my files are as following&lt;/P&gt;&lt;P&gt;invoice_01_2016&lt;/P&gt;&lt;P&gt;invoice_02_2016&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;invoice_01_2017 etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;... *&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Applymap('test',invoice) as invoiceamount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from invoices_*.xls.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but here i have another file from example: invoiceamount_2016.xls , &lt;SPAN style="font-size: 13.3333px;"&gt;invoiceamount_2017.xls , &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;test:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;invoice &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;invoice amount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;from &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;invoiceamount_2016.xls&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;so here for using&amp;nbsp; an applymap ..i cannot use on all at once.. i need to load each year in seperate files.. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;thant means i can load invoice_* at a time.. but when applymap comes i need to divide the file and reiterate each year with each year applymaps..&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;is there an efficient way here?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315289#M847384</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: multiple loads</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315290#M847385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/62449"&gt;loop through to load all files from a folder and its subfolders?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 01:39:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315290#M847385</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2017-03-31T01:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: multiple loads</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315291#M847386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raadwiptec,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trust that you are doing great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a workaround you can make use of below script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_149094071145239" jivemacro_uid="_149094071145239" modifiedtitle="true"&gt;
&lt;P&gt;Map_Invoice_Amount:&lt;/P&gt;
&lt;P&gt;Mapping LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SubField(FileBaseName(),'_', 2) &amp;amp; '|' &amp;amp; Invoice As InvoiceKey, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;Data\InvoiceAmount_*.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;InvoiceData:&lt;/P&gt;
&lt;P&gt;LOAD Invoice, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QTY,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Map_Invoice_Amount', SubField(FileBaseName(),'_', 3) &amp;amp; '|' &amp;amp; Invoice, 'No Invoice Amount') AS InvoiceAmount&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;Data\Invoice_*.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer the sample application attached herewith.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 06:14:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315291#M847386</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-03-31T06:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: multiple loads</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315292#M847387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My filebase name is invoice_13_01 .....invoice_15_01.......can you adjust the code for this... can you also tell me the logic behind 2 and 3 in your script..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 08:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315292#M847387</guid>
      <dc:creator>raadwiptec</dc:creator>
      <dc:date>2017-04-01T08:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: multiple loads</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315293#M847388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raadwiptech,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used &lt;SPAN class="statement" style="font-weight: bold;"&gt;Subfield()&lt;/SPAN&gt; function to extract substring components from a parent string field i.e. result of &lt;STRONG&gt;FileBaseName()&lt;/STRONG&gt; function (This function will return the base file name without extension which is being loaded in QlikView); where the original record fields consist of two or more parts separated by a delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14910408908632161 jive_text_macro" jivemacro_uid="_14910408908632161" modifiedtitle="true"&gt;
&lt;P style="font-size: 13.3333px;"&gt;//Syntax&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;SubField(text, delimiter[, field_no ])&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;//Example&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;SubField(FileBaseName(),'_', 2)&amp;nbsp;&amp;nbsp;&amp;nbsp; \\ Returns the second field i.e. 2016 separated by _ delimiter if FileBaseName() function returns &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;InvoiceAmount_2016&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;SubField(FileBaseName(),'_', 3)&amp;nbsp;&amp;nbsp;&amp;nbsp; \\ Returns the third field i.e. 2016 separated by _ delimiter if FileBaseName() function returns &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Invoice_01_2016&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Please refer below modified code for your reference (I haven't tested it; please do the needful):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1491040908276635 jive_text_macro" jivemacro_uid="_1491040908276635"&gt;
&lt;P style="font-size: 13.3333px;"&gt;Map_Invoice_Amount: &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Mapping LOAD &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Right(SubField(FileBaseName(),'_', 2),2) &amp;amp; '|' &amp;amp; Invoice As InvoiceKey, &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Amount &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;FROM &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Data\InvoiceAmount_*.xlsx &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is Sheet1); &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;InvoiceData: &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;LOAD Invoice, &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date, &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QTY, &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplyMap('Map_Invoice_Amount', SubField(FileBaseName(),'_', 2) &amp;amp; '|' &amp;amp; Invoice, 'No Invoice Amount') AS InvoiceAmount &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;FROM &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Data\Invoice_*.xlsx &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this will be helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Apr 2017 10:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315293#M847388</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-04-01T10:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: multiple loads</title>
      <link>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315294#M847389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;test:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;invoice &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;invoiceamount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;invoiceamount_*.xls&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Applymap('test',invoice) as invoiceamount&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from &lt;STRONG&gt;invoice_*.xls&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Apr 2017 11:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/multiple-loads/m-p/1315294#M847389</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-04-02T11:02:14Z</dc:date>
    </item>
  </channel>
</rss>

