<?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 Store multiple folder excel files into multiple QVDs Challenge in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1533556#M438958</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have an automated extraction every week, in a zip or rar file, with the following structure :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;AllTablesEXCEL&amp;nbsp;&lt;UL&gt;&lt;LI&gt;Group1&lt;UL&gt;&lt;LI&gt;Group1_1.xlsx&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;Group1_N.xlsx&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;GroupN&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And I'd like to get a final structure like the following one :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;AllTablesEXCEL&amp;nbsp;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Group1.qvd&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;GroupN.qvd&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Where in each Group qvd is stored all the excel files inside the subfolder&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How could I do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've done a sample of my structure in case someone could help me with that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards, Marcel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:41:37 GMT</pubDate>
    <dc:creator>marcel_olmo</dc:creator>
    <dc:date>2024-11-16T04:41:37Z</dc:date>
    <item>
      <title>Store multiple folder excel files into multiple QVDs Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1533556#M438958</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have an automated extraction every week, in a zip or rar file, with the following structure :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;AllTablesEXCEL&amp;nbsp;&lt;UL&gt;&lt;LI&gt;Group1&lt;UL&gt;&lt;LI&gt;Group1_1.xlsx&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;Group1_N.xlsx&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;...&lt;/LI&gt;&lt;LI&gt;GroupN&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And I'd like to get a final structure like the following one :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;AllTablesEXCEL&amp;nbsp;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Group1.qvd&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;GroupN.qvd&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Where in each Group qvd is stored all the excel files inside the subfolder&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How could I do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've done a sample of my structure in case someone could help me with that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards, Marcel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1533556#M438958</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2024-11-16T04:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Store multiple folder excel files into multiple QVDs Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1533562#M438960</link>
      <description>You will somehow need to loop through your folders and fetch all files in each folder.&lt;BR /&gt;FOR EACH _folder.dir in DirList(some path)&lt;BR /&gt;...&lt;BR /&gt;NEXT&lt;BR /&gt;&lt;BR /&gt;I'm too lazy to re-write this logic every time I need it. I always reuse a SUB where I just need folder and filter parameters to fetch my files. It is pretty similar to the qvc.listfiles in the QlikView Components project, its one of my favorites SUBs in that project. I really recommend you to check it out if you have not already have done so. &lt;A href="https://github.com/RobWunderlich/Qlikview-Components" target="_blank"&gt;https://github.com/RobWunderlich/Qlikview-Components&lt;/A&gt;</description>
      <pubDate>Tue, 22 Jan 2019 23:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1533562#M438960</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-01-22T23:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Store multiple folder excel files into multiple QVDs Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1533631#M438964</link>
      <description>&lt;P&gt;There are the script, pal:&lt;/P&gt;&lt;PRE&gt;SET ErrorMode = 0;

SUB DoDir(Root)

FOR each File in filelist( Root &amp;amp; '\*.xlsx')

TRACE '$(File)';

	Data:
    LOAD *
    	,FileBaseName()
    	,RowNo()
    FROM
    [$(File)]
    (ooxml, embedded labels, table is Hoja1);
    
NEXT File


FOR each Dir in Dirlist (Root&amp;amp;'\*')
     CALL DoDir(Dir)
NEXT Dir

END SUB 

CALL DoDir('C:\Users\Mindaugasb\OneDrive - UAB Biovela\Profile\Downloads\AllTablesEXCEL')

SET ErrorMode = 1;

STORE Data into 'C:\Users\Mindaugasb\OneDrive - UAB Biovela\Profile\Downloads\Data.qvd' (qvd);&lt;/PRE&gt;&lt;P&gt;Take a look at the out coming result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.jpg" style="width: 314px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4292i60AF1D516B46AD8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.jpg" alt="Screenshot_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added few additional lines to the file name and the lines counter.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 06:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1533631#M438964</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-01-23T06:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Store multiple folder excel files into multiple QVDs Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1535434#M439101</link>
      <description>&lt;P&gt;Thanks for the try&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41417"&gt;@MindaugasBacius&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your output is the following :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output1.png" style="width: 404px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4568i92587EFEB6E7C2DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Output1.png" alt="Output1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And my desired output is the following :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output2.png" style="width: 450px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4569i0987C5C4603115D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Output2.png" alt="Output2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Where each folder is fully stored in a QVD.&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 20:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1535434#M439101</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2019-01-25T20:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Store multiple folder excel files into multiple QVDs Challenge</title>
      <link>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1535460#M439103</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41417"&gt;@MindaugasBacius&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I've done it thanks to your script, thank you, I trully apreciate it.&lt;/P&gt;&lt;P&gt;I've just move the data store&amp;nbsp;after the for next file loop&lt;/P&gt;&lt;P&gt;Regards, Marcel.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jan 2019 06:45:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-multiple-folder-excel-files-into-multiple-QVDs-Challenge/m-p/1535460#M439103</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2019-01-26T06:45:23Z</dc:date>
    </item>
  </channel>
</rss>

