<?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: Crying for help ******** in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Crying-for-help/m-p/490773#M183355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may help you.&amp;nbsp; Maybe it is not precise, but should be close enough so you can figure out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Find the files to load ------------------------------------&lt;BR /&gt;Files_src:&lt;BR /&gt;LOAD FileName() as FileName&amp;nbsp; &lt;BR /&gt;FROM [\\&amp;lt;path&amp;gt;\*.xlsx] (ooxml, explicit labels, table is &amp;lt;...&amp;gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File:&lt;BR /&gt;LOAD&lt;BR /&gt; FileName,&lt;BR /&gt; TextBetween(File, 'Global Inventory By Business ', ' M') as FileYear,&lt;BR /&gt; TextBetween(File, 'M', '.') as FileMonth&lt;BR /&gt;RESIDENT Files_src;&lt;BR /&gt;DROP TABLE Files_src;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN (File)&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;STRONG&gt; FileName,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // here are the files you need&lt;/STRONG&gt;&lt;BR /&gt; max(FileMonth) as FileMonth&lt;BR /&gt;RESIDENT Files_tmp&lt;BR /&gt;GROUP BY FileYear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load data from&amp;nbsp; files ------------------------------&lt;BR /&gt;LET noRows = NoOfRows('File')-1;&amp;nbsp; // number of files to load&lt;/P&gt;&lt;P&gt;FOR i=0 to $(noRows)&lt;BR /&gt; &lt;STRONG&gt;LET f=peek('FileName',$(i),'File');&lt;/STRONG&gt;&lt;BR /&gt; Data:&lt;BR /&gt; LOAD&lt;BR /&gt;&amp;nbsp; ...&lt;BR /&gt; FROM [\\&amp;lt;path&amp;gt;\&lt;STRONG&gt;$(f)&lt;/STRONG&gt;] (ooxml, explicit labels, table is &amp;lt;...&amp;gt;);&lt;BR /&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE File;&lt;BR /&gt;LET i = null();&lt;BR /&gt;LET f = null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Dec 2013 19:16:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-16T19:16:37Z</dc:date>
    <item>
      <title>Crying for help ********</title>
      <link>https://community.qlik.com/t5/QlikView/Crying-for-help/m-p/490771#M183353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have few&amp;nbsp; Spread sheets(2011- 2013)&amp;nbsp; in drop box , each spread sheets have 5 sheets in it ,My Requirement is to load latest spread sheet and thier&amp;nbsp; followoing sheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assumption: Let us assume we are in Aug 2013&lt;/P&gt;&lt;P&gt;For eg;&lt;/P&gt;&lt;P&gt;we should load the below mentioned spread sheets&amp;nbsp; in qlikview from drop box&amp;nbsp; if we are in year Aug 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global inventory by business 2011 M12 (Latest: where M12 = M Dec)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global inventory by business 2012 M12 (Latest where M12= M Dec)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global Inventory by business 2012 M 8 (Latest where M 8= M Aug)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this i need a script with a result of &lt;STRONG&gt;field having field values&amp;nbsp; &lt;/STRONG&gt;as Latest file names&amp;nbsp; from existing spread sheets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt; Latest files name &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Global inventory by business 2011 M12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Global inventory by business 2012 M12&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Global inventory by business 2013 M 8&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Earlier it used to achieve by loading XML file .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 18:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crying-for-help/m-p/490771#M183353</guid>
      <dc:creator />
      <dc:date>2013-12-16T18:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Crying for help ********</title>
      <link>https://community.qlik.com/t5/QlikView/Crying-for-help/m-p/490772#M183354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find Attachment.&lt;IMG alt="Capture1.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/50512_Capture1.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 18:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crying-for-help/m-p/490772#M183354</guid>
      <dc:creator />
      <dc:date>2013-12-16T18:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Crying for help ********</title>
      <link>https://community.qlik.com/t5/QlikView/Crying-for-help/m-p/490773#M183355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This may help you.&amp;nbsp; Maybe it is not precise, but should be close enough so you can figure out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Find the files to load ------------------------------------&lt;BR /&gt;Files_src:&lt;BR /&gt;LOAD FileName() as FileName&amp;nbsp; &lt;BR /&gt;FROM [\\&amp;lt;path&amp;gt;\*.xlsx] (ooxml, explicit labels, table is &amp;lt;...&amp;gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File:&lt;BR /&gt;LOAD&lt;BR /&gt; FileName,&lt;BR /&gt; TextBetween(File, 'Global Inventory By Business ', ' M') as FileYear,&lt;BR /&gt; TextBetween(File, 'M', '.') as FileMonth&lt;BR /&gt;RESIDENT Files_src;&lt;BR /&gt;DROP TABLE Files_src;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN (File)&lt;BR /&gt;LOAD&lt;BR /&gt;&lt;STRONG&gt; FileName,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // here are the files you need&lt;/STRONG&gt;&lt;BR /&gt; max(FileMonth) as FileMonth&lt;BR /&gt;RESIDENT Files_tmp&lt;BR /&gt;GROUP BY FileYear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load data from&amp;nbsp; files ------------------------------&lt;BR /&gt;LET noRows = NoOfRows('File')-1;&amp;nbsp; // number of files to load&lt;/P&gt;&lt;P&gt;FOR i=0 to $(noRows)&lt;BR /&gt; &lt;STRONG&gt;LET f=peek('FileName',$(i),'File');&lt;/STRONG&gt;&lt;BR /&gt; Data:&lt;BR /&gt; LOAD&lt;BR /&gt;&amp;nbsp; ...&lt;BR /&gt; FROM [\\&amp;lt;path&amp;gt;\&lt;STRONG&gt;$(f)&lt;/STRONG&gt;] (ooxml, explicit labels, table is &amp;lt;...&amp;gt;);&lt;BR /&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE File;&lt;BR /&gt;LET i = null();&lt;BR /&gt;LET f = null();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 19:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crying-for-help/m-p/490773#M183355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-16T19:16:37Z</dc:date>
    </item>
  </channel>
</rss>

