<?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 using variable in .csv filename in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-using-variable-in-csv-filename/m-p/1666795#M594649</link>
    <description>&lt;P&gt;Try it in this way:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vFile = 'PropertyErrorList_' &amp;amp; date(today(), 'YYYY-MM-DD') &amp;amp; '.csv';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;AMM_Property_error_list:&lt;BR /&gt;LOAD&amp;nbsp; id, message, propertyNumber&lt;BR /&gt;FROM [c:\property_error_list\Data\&lt;STRONG&gt;$(vFile)&lt;/STRONG&gt;]&lt;BR /&gt;(txt, unicode, embedded labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2020 14:55:08 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-01-17T14:55:08Z</dc:date>
    <item>
      <title>Load using variable in .csv filename</title>
      <link>https://community.qlik.com/t5/QlikView/Load-using-variable-in-csv-filename/m-p/1666722#M594648</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to use a variable in the .csv file I intend to load on a daily basis, and because of this, I am using today() as a reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for some reason, nothing I do makes me able to use today() in the filename I want to load.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Let vCreatedDate = date(today(), 'YYYY-MM-DD');
Let vFileName = 'PropertyErrorList_$(vCreatedDate).csv';

AMM_Property_error_list:
LOAD 
     id, 
     message, 
     propertyNumber
FROM
[c:\property_error_list\Data\$(vFileName)] 
(txt, unicode, embedded labels, delimiter is ';', msq);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 12:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-using-variable-in-csv-filename/m-p/1666722#M594648</guid>
      <dc:creator>varmekontrol</dc:creator>
      <dc:date>2020-01-17T12:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Load using variable in .csv filename</title>
      <link>https://community.qlik.com/t5/QlikView/Load-using-variable-in-csv-filename/m-p/1666795#M594649</link>
      <description>&lt;P&gt;Try it in this way:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vFile = 'PropertyErrorList_' &amp;amp; date(today(), 'YYYY-MM-DD') &amp;amp; '.csv';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;AMM_Property_error_list:&lt;BR /&gt;LOAD&amp;nbsp; id, message, propertyNumber&lt;BR /&gt;FROM [c:\property_error_list\Data\&lt;STRONG&gt;$(vFile)&lt;/STRONG&gt;]&lt;BR /&gt;(txt, unicode, embedded labels, delimiter is ';', msq);&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 14:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-using-variable-in-csv-filename/m-p/1666795#M594649</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-01-17T14:55:08Z</dc:date>
    </item>
  </channel>
</rss>

