<?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 How load only last sheet from file? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-load-only-last-sheet-from-file/m-p/842562#M656309</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;&lt;/P&gt;&lt;P&gt;Every week I'm receiving files with multiple sheets, but I need to load data only from the last one.&lt;/P&gt;&lt;P&gt;Problem that each sheets has own name and these names are different from week to week, for example:&lt;IMG alt="Безымянный.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88605_Безымянный.png" style="font-size: 13.3333330154419px;" /&gt;&lt;/P&gt;&lt;P&gt;How I can load data only from the last sheet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Jun 2015 15:21:47 GMT</pubDate>
    <dc:creator>vchuprina</dc:creator>
    <dc:date>2015-06-07T15:21:47Z</dc:date>
    <item>
      <title>How load only last sheet from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-only-last-sheet-from-file/m-p/842562#M656309</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;&lt;/P&gt;&lt;P&gt;Every week I'm receiving files with multiple sheets, but I need to load data only from the last one.&lt;/P&gt;&lt;P&gt;Problem that each sheets has own name and these names are different from week to week, for example:&lt;IMG alt="Безымянный.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88605_Безымянный.png" style="font-size: 13.3333330154419px;" /&gt;&lt;/P&gt;&lt;P&gt;How I can load data only from the last sheet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 15:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-only-last-sheet-from-file/m-p/842562#M656309</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-06-07T15:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How load only last sheet from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-only-last-sheet-from-file/m-p/842563#M656310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See here an example how do you could load multiple sheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-7860" title="https://community.qlik.com/docs/DOC-7860"&gt;https://community.qlik.com/docs/DOC-7860&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if it's possible to recognize within the sheet-table the last or newest sheet but if there isn't an unique indicator then you could store the already loaded sheetnames and check these within an if-loop if they match with the available sheets or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2015 17:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-only-last-sheet-from-file/m-p/842563#M656310</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-06-07T17:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: How load only last sheet from file?</title>
      <link>https://community.qlik.com/t5/QlikView/How-load-only-last-sheet-from-file/m-p/842564#M656311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just putting here the code to do so using part of what Marcus shared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set file = '[PATH]\[FILE].xlsx';&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO [Excel Files;DBQ=$(file)];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:&lt;/P&gt;&lt;P&gt;SQLtables;&lt;/P&gt;&lt;P&gt;DISCONNECT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last:&lt;/P&gt;&lt;P&gt;first 1&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLE_NAME&lt;/P&gt;&lt;P&gt;resident tables&lt;/P&gt;&lt;P&gt;order by TABLE_NAME DESC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let LastTab = replace(Peek('TABLE_NAME',0,'Last'),'$','');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Tables tables,Last;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[[PATH]\[FILE].xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is $(LastTab));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 15:35:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-load-only-last-sheet-from-file/m-p/842564#M656311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-19T15:35:17Z</dc:date>
    </item>
  </channel>
</rss>

