<?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: How to load filename as a column inside for loop in load script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-load-filename-as-a-column-inside-for-loop-in-load-script/m-p/1572119#M442225</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Table1:
LOAD SubField(&lt;FONT size="5" color="#FF0000"&gt;'&lt;/FONT&gt;$(FoundFile)&lt;FONT size="5" color="#FF0000"&gt;'&lt;/FONT&gt;,'\txt\',2) as file,&lt;/PRE&gt;&lt;P&gt;Your single quotes look like another type of quotes&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2019 13:24:22 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-04-23T13:24:22Z</dc:date>
    <item>
      <title>How to load filename as a column inside for loop in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-filename-as-a-column-inside-for-loop-in-load-script/m-p/1572110#M442224</link>
      <description>&lt;P&gt;&lt;BR /&gt;Let vFile = '';&lt;/P&gt;&lt;P&gt;for each FoundFile in filelist( '.\txt\*.txt')&lt;/P&gt;&lt;P&gt;Let vFile = SubField(Text($(FoundFile)),'\txt\',2);&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;Load&lt;BR /&gt;$(vFile)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why this variable does not work?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 636px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10697i465EAA262E749122/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for each FoundFile in filelist( '.\txt\*.txt')&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;Load&lt;BR /&gt;SubField(‘$(FoundFile)’,'\txt\',2) as file,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image (1).png" style="width: 870px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/10698i1B238E2FD9C7E30C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image (1).png" alt="image (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't get this to work. I'm lost.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-filename-as-a-column-inside-for-loop-in-load-script/m-p/1572110#M442224</guid>
      <dc:creator>arngue</dc:creator>
      <dc:date>2024-11-16T03:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to load filename as a column inside for loop in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-filename-as-a-column-inside-for-loop-in-load-script/m-p/1572119#M442225</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Table1:
LOAD SubField(&lt;FONT size="5" color="#FF0000"&gt;'&lt;/FONT&gt;$(FoundFile)&lt;FONT size="5" color="#FF0000"&gt;'&lt;/FONT&gt;,'\txt\',2) as file,&lt;/PRE&gt;&lt;P&gt;Your single quotes look like another type of quotes&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 13:24:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-filename-as-a-column-inside-for-loop-in-load-script/m-p/1572119#M442225</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-04-23T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to load filename as a column inside for loop in load script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-load-filename-as-a-column-inside-for-loop-in-load-script/m-p/1572124#M442226</link>
      <description>&lt;P&gt;How about simply doing?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load FileName() as FileName From Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you need your way, try this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vFile = '';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for each FoundFile in filelist( '.\txt\*.txt')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vCount = NoOfRows('$(FoundFile)');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SubField($(FoundFile),'\txt\',2) as File&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Autogenerate $(vCount);&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 13:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-load-filename-as-a-column-inside-for-loop-in-load-script/m-p/1572124#M442226</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2019-04-23T13:28:36Z</dc:date>
    </item>
  </channel>
</rss>

