<?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: Load all csv files from a web address in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1700886#M726325</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Thanks for your attention, but it's not working.&lt;BR /&gt;The Table called Files: contains all csv files, and it's correct, but the when I'm asking to LOAD ALL MY FILE, the system is not even opening the CSV file to load as you can see on $SysTable 1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error 4.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33385i9DA3E6383E14C3DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error 4.png" alt="Error 4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do?&lt;BR /&gt;Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Bruno&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 03:49:07 GMT</pubDate>
    <dc:creator>brunolelli87</dc:creator>
    <dc:date>2020-05-12T03:49:07Z</dc:date>
    <item>
      <title>Load all csv files from a web address</title>
      <link>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1700523#M726322</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;I created the following script in order to load all the excel files I have in my web address. But as you can see it's not a "clean code", onde I have to write all the Stickers I have like (B3SA3, BRAP4, WEGE3...). Stickers are the file's name.&lt;/P&gt;&lt;P&gt;How could I convert it to a cleaner code?&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Like:&lt;BR /&gt;Lood all files from the following website:&amp;nbsp;[&lt;A href="http://lelli.000webhostapp.com/InvestmentsCSV/$(Sticker).csv" target="_blank"&gt;http://lelli.000webhostapp.com/InvestmentsCSV/$(Sticker).csv&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;Is there any way to do it?&lt;BR /&gt;An important point is that I really need the name of the file as a columnin my table. As you can see in the code below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;For each Sticker in 'B3SA3', 'BRAP4', 'WEGE3', 'LCAM3', 'EMBR3', 'MRVE3', 'HAPV3', 'LIGT3', 'BRFS3', 'AMAR3', 'USIM5', 'HGTX3', 'MEAL3', 'JBSS3', 'CEAB3', 'COGN3', 'AZUL4', 'GOLL4', 'PETR4', 'GGBR4', 'RENT3', 'MOVI3', 'VALE3', 'CMIG4', 'CIEL3', 'ELET6', 'CVCB3', 'IGTA3', 'CCRO3', 'DTEX3', 'CSMG3', 'CPFE3', 'ABEV3', 'LREN3', 'MRFG3', 'RLOG3', 'RAIL3', 'POMO4', 'BRDT3', 'ELET3', 'BRKM5', 'SMLS3', 'GUAR3', 'VVAR3', 'TOTS3', 'BTOW3', 'CYRE3', 'HYPE3', 'QUAL3', 'SBSP3', 'LAME4', 'NTCO3', 'UGPA3', 'VIVT4', 'ECOR3',  'SUZB3', 'TIMP3', 'KLBN11', 'GNDI3', 'MGLU3', 'YDUQ3', 'PETR3', 'FLRY3', 'CSNA3', 'RADL3', 'PCAR3', 'BRML3', 'ENBR3', 'TAEE11', 'CSAN3', 'GOAU4', 'EQTL3', 'MULT3', 'CRFB3'


BalancoPatrimonial:
LOAD 	
	    Date(Date#(F1, 'DD/MM/YYYY')+1) as [Periodo],
	    '$(Sticker)' as [Sticker], 
	    [Ativo Total],
	    [Ativo Circulante], 
	    [Outros Resultados Abrangentes],
	    [Adiantamento para Futuro Aumento Capital1]
FROM
[http://lelli.000webhostapp.com/InvestmentsCSV/$(Sticker).csv]
(txt, utf8, embedded labels, delimiter is ',', msq, filters(
Remove(Row, Pos(Top, 1)),
Transpose(),
Remove(Row, RowCnd(CellValue, 4, StrCnd(null)))
));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Bruno Lelli&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1700523#M726322</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load all csv files from a web address</title>
      <link>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1700727#M726323</link>
      <description>&lt;P&gt;Any help is more than welcome guys!&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 14:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1700727#M726323</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2020-05-11T14:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Load all csv files from a web address</title>
      <link>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1700810#M726324</link>
      <description>&lt;P&gt;It's fortunate that that website will return a directory list of you don't specify a filename. So you can do something like:&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;Files: &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Name&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;FROM&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s2"&gt;[&lt;A href="http://lelli.000webhostapp.com/InvestmentsCSV/" target="_blank"&gt;http://lelli.000webhostapp.com/InvestmentsCSV/&lt;/A&gt;]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;(&lt;SPAN class="s1"&gt;html&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;utf8&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;UserAgent&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;is&lt;/SPAN&gt; 'Mozilla/5.0', &lt;SPAN class="s1"&gt;embedded&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;labels&lt;/SPAN&gt;, &lt;SPAN class="s1"&gt;table&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;is&lt;/SPAN&gt; @1)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Where&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Name&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;like&lt;/SPAN&gt; '*.csv';&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;for&lt;/SPAN&gt; i = 0 &lt;SPAN class="s1"&gt;to&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;NoOfRows&lt;/SPAN&gt;('Files')&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Let&lt;/SPAN&gt; vFile = &lt;SPAN class="s1"&gt;Peek&lt;/SPAN&gt;('Name', &lt;SPAN class="s3"&gt;&lt;I&gt;$(i)&lt;/I&gt;&lt;/SPAN&gt;, 'Files');&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s4"&gt;// Your load code here&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Next&lt;/SPAN&gt; i&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 20:03:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1700810#M726324</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-05-11T20:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Load all csv files from a web address</title>
      <link>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1700886#M726325</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Thanks for your attention, but it's not working.&lt;BR /&gt;The Table called Files: contains all csv files, and it's correct, but the when I'm asking to LOAD ALL MY FILE, the system is not even opening the CSV file to load as you can see on $SysTable 1.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error 4.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33385i9DA3E6383E14C3DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error 4.png" alt="Error 4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do?&lt;BR /&gt;Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 03:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1700886#M726325</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2020-05-12T03:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Load all csv files from a web address</title>
      <link>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1701218#M726326</link>
      <description>&lt;P&gt;Sorry, I should have pointed out that you should use the vFile variable in the FROM within your loop:&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;FROM&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;&lt;BR /&gt;&lt;/SPAN&gt;[&lt;A href="http://lelli.000webhostapp.com/InvestmentsCSV/" target="_blank"&gt;http://lelli.000webhostapp.com/InvestmentsCSV/&lt;/A&gt;&lt;STRONG&gt;$(vFile)&lt;/STRONG&gt;]&lt;SPAN class="s2"&gt;&lt;BR /&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;txt&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;utf8&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;embedded&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;labels&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;delimiter&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;is&lt;/SPAN&gt;&lt;SPAN class="s2"&gt; ',', &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;msq&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;, filters &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 17:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1701218#M726326</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-05-12T17:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load all csv files from a web address</title>
      <link>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1701684#M726327</link>
      <description>&lt;P&gt;Thanks for all your assistance.&lt;/P&gt;&lt;P&gt;I'm learning a lot with you guys, and your experience is very helpful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Btw, I was thinking about my project and I believe the best thing to do is to create a list of companies on an Excel Spreadsheet and read the files based on this list.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;&lt;STRONG&gt;Company&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;&lt;STRONG&gt;File&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;AZUL&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;AZUL4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;GOLL&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;GOLL4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, how can I execute a Foor Loop based on the companies of my Excel Spreadsheet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your assistance,&lt;BR /&gt;Best regards&lt;/P&gt;&lt;P&gt;Bruno Lelli&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 16:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-all-csv-files-from-a-web-address/m-p/1701684#M726327</guid>
      <dc:creator>brunolelli87</dc:creator>
      <dc:date>2020-05-13T16:51:09Z</dc:date>
    </item>
  </channel>
</rss>

