<?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 Load a variable into a table...? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153648#M30610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use function INDEX() to find the position of the dot in the string and then use the result inside function LEFT() to cut out the part that you need. Something like this:&lt;/P&gt;&lt;P&gt;LEFT( NAME , INDEX(NAME, '.', -1) - 1)&lt;/P&gt;&lt;P&gt;The function INDEX(NAME, '.', -1) returns the last position of a dot in the NAME (assuming that you might have more than one dot in a file name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Mar 2011 15:49:48 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2011-03-10T15:49:48Z</dc:date>
    <item>
      <title>Load a variable into a table...?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153643#M30605</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;thanks a lot in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem which I really do not understand an it has to be extremely simple...&lt;/P&gt;&lt;P&gt;I have this code...&lt;/P&gt;&lt;P&gt;which basically goes to a path, take every file and in a variable load the name of the register.&lt;/P&gt;&lt;P&gt;The problem is that I do not know how to store every name (the values I am storing in the variable into a table with just one field, the name of file).&lt;/P&gt;&lt;P&gt;Where is the fail?&lt;/P&gt;&lt;P&gt;let vVariable = '';&lt;BR /&gt;&lt;BR /&gt;FOR EACH vFile IN FileList ('C:\Documents and Settings\cgi\Desktop\QV 10\CTO_VOD\CTO Vodafone\images\CTO\Projects' &amp;amp; '\*')&lt;BR /&gt; // You get the name of the file excluding the path&lt;BR /&gt; LET vFileName = Right('$(vFile)', Len('$(vFile)') - Index('$(vFile)', '', SubStringCount('$(vFile)', '')));&lt;BR /&gt;&lt;BR /&gt; Names_Table:&lt;BR /&gt; LOAD&lt;BR /&gt; vFileName as Name;&lt;BR /&gt;&lt;BR /&gt;next vFile;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 13:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153643#M30605</guid>
      <dc:creator>lfalmoguera</dc:creator>
      <dc:date>2011-03-10T13:12:17Z</dc:date>
    </item>
    <item>
      <title>Load a variable into a table...?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153644#M30606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;it's quite simple:&lt;/P&gt;&lt;P&gt;Names_Table:&lt;BR /&gt; LOAD&lt;BR /&gt; '$(vFileName)' as Name&lt;/P&gt;&lt;P&gt;AUTOGENERATE 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 13:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153644#M30606</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2011-03-10T13:35:16Z</dc:date>
    </item>
    <item>
      <title>Load a variable into a table...?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153645#M30607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did not work,&lt;/P&gt;&lt;P&gt;but this one did!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks a lot anyway!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_Projects_Jpgs:&lt;BR /&gt; load * inline [imageName&lt;BR /&gt; '$(vNameFile)'];&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 14:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153645#M30607</guid>
      <dc:creator>lfalmoguera</dc:creator>
      <dc:date>2011-03-10T14:09:26Z</dc:date>
    </item>
    <item>
      <title>Load a variable into a table...?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153646#M30608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;very strange.&lt;/P&gt;&lt;P&gt;I always use such approach&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 15:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153646#M30608</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2011-03-10T15:14:48Z</dc:date>
    </item>
    <item>
      <title>Load a variable into a table...?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153647#M30609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Sparur.&lt;/P&gt;&lt;P&gt;Now I am having other issue.&lt;/P&gt;&lt;P&gt;I have names like test1.jpg, test2.bmp, test3.jpeg.&lt;/P&gt;&lt;P&gt;Anyway I can get rid of the point and that comes after the name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 15:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153647#M30609</guid>
      <dc:creator>lfalmoguera</dc:creator>
      <dc:date>2011-03-10T15:21:31Z</dc:date>
    </item>
    <item>
      <title>Load a variable into a table...?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153648#M30610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use function INDEX() to find the position of the dot in the string and then use the result inside function LEFT() to cut out the part that you need. Something like this:&lt;/P&gt;&lt;P&gt;LEFT( NAME , INDEX(NAME, '.', -1) - 1)&lt;/P&gt;&lt;P&gt;The function INDEX(NAME, '.', -1) returns the last position of a dot in the NAME (assuming that you might have more than one dot in a file name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2011 15:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-a-variable-into-a-table/m-p/153648#M30610</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-10T15:49:48Z</dc:date>
    </item>
  </channel>
</rss>

