<?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: Field from first table into Filepath for new table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128257#M633548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh also I should have mentioned:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Date&lt;/STRONG&gt; field from the &lt;STRONG&gt;Calendar&lt;/STRONG&gt; table denotes which folders the Data are in. But these don't seem to be working either. &lt;/P&gt;&lt;P&gt;The folder path would be: H:\year\month\file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;H&gt;&lt;/H&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2016 11:57:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-11T11:57:21Z</dc:date>
    <item>
      <title>Field from first table into Filepath for new table</title>
      <link>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128256#M633547</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;I want to be able to open a table based on the field that is pulled from a separate table, but am having no luck figuring it out. Any help would be appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; @1 as Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp; textbetween(@2,' ','day')&amp;amp;textbetween(@2,' ',' ',2) as &lt;STRONG&gt;File&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;H&gt;&lt;/H&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;H&gt;&lt;/H&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 11:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128256#M633547</guid>
      <dc:creator />
      <dc:date>2016-07-11T11:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Field from first table into Filepath for new table</title>
      <link>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128257#M633548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh also I should have mentioned:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Date&lt;/STRONG&gt; field from the &lt;STRONG&gt;Calendar&lt;/STRONG&gt; table denotes which folders the Data are in. But these don't seem to be working either. &lt;/P&gt;&lt;P&gt;The folder path would be: H:\year\month\file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;H&gt;&lt;/H&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 11:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128257#M633548</guid>
      <dc:creator />
      <dc:date>2016-07-11T11:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Field from first table into Filepath for new table</title>
      <link>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128258#M633549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;Hope you have only one row in Calendar - File Field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Calendar:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; @1 as Date,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; textbetween(@2,' ','day')&amp;amp;textbetween(@2,' ',' ',2) as &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;File&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;H&gt;&lt;/H&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(txt, codepage is 1252, no labels, delimiter is ';', msq);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vFilePath = Peek('File');&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;H&gt;&lt;/H&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 12:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128258#M633549</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2016-07-11T12:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field from first table into Filepath for new table</title>
      <link>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128259#M633550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for responding Mayil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually there is a different file for each day of the year corresponding to 1 filename for each row. I then only want to do a lookup/mapping load (haven't figured out the best for this yet) to pull 1 or 2 fields from each file into a different table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 12:18:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128259#M633550</guid>
      <dc:creator />
      <dc:date>2016-07-11T12:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Field from first table into Filepath for new table</title>
      <link>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128260#M633551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With your suggestion I have amended my script to look as follows, it is working fine to pull the year because all the years in the Calendar table are same at the moment (2016) however, it is receiving an error when it gets to pulling the month and file name.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vFilePath = Peek('File');&lt;/P&gt;&lt;P&gt;Let vYearPath = timestamp(peek('Date'),'yyyy');&lt;/P&gt;&lt;P&gt;Let vMonthPath = timestamp(peek('Date'),'mmm');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;H&gt;;&lt;/H&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 12:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-from-first-table-into-Filepath-for-new-table/m-p/1128260#M633551</guid>
      <dc:creator />
      <dc:date>2016-07-11T12:47:56Z</dc:date>
    </item>
  </channel>
</rss>

