<?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: Scripting Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731756#M262071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement of loading a particular field from the csv file only after June 2014. For the previous years that field is not present in the file.&lt;/P&gt;&lt;P&gt;I have used this expressoin&lt;/P&gt;&lt;P&gt;if(date(date#(textbetween(lower(Filename()),'data', '.csv'),' MMM YYYY'),'MMM YYYY')&amp;gt;'May 2014', FieldName,'') as FieldName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above expression throws up an error Field not found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 12:53:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-15T12:53:22Z</dc:date>
    <item>
      <title>Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731753#M262068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a folder which conatins many csv files with names such as aaa MAY 2014, aaa Jun 2014 and so on.&lt;/P&gt;&lt;P&gt;How do i load only those csv files which are received after MAY 2014.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731753#M262068</guid>
      <dc:creator />
      <dc:date>2014-10-15T12:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731754#M262069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the file name contains the month name, you can use the function FilebaseName() to get the name of the file and filter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:15:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731754#M262069</guid>
      <dc:creator />
      <dc:date>2014-10-15T12:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731755#M262070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Convert the part of the FilebaseName() with the "date" in it into a date and the check this date if you should proceed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET fileDate = Date(Date#('01 MAY 2014', 'DD MMM YYYY'), 'YYYY-MM-DD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return a date for that you can compare with in an IF statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731755#M262070</guid>
      <dc:creator>johanlindell</dc:creator>
      <dc:date>2014-10-15T12:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731756#M262071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement of loading a particular field from the csv file only after June 2014. For the previous years that field is not present in the file.&lt;/P&gt;&lt;P&gt;I have used this expressoin&lt;/P&gt;&lt;P&gt;if(date(date#(textbetween(lower(Filename()),'data', '.csv'),' MMM YYYY'),'MMM YYYY')&amp;gt;'May 2014', FieldName,'') as FieldName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above expression throws up an error Field not found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731756#M262071</guid>
      <dc:creator />
      <dc:date>2014-10-15T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731757#M262072</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;this won't work in your loadstatementn because QlikView will interprete FieldName as if there is a field with that name resulting in Error if not. There are a several ways to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on your script you could try (if you are looping through all files with filelist() for example) a control statement, using different loads:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if date(date#(textbetween(lower(subfield('$(vFile)', '\', (substringcount('$(vFile)', '\')+1))),'data', '.csv'),' MMM YYYY'),'MMM YYYY')&amp;gt; date(MakeDate(2014, 5), 'MMM YYYY') then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;FieldName&lt;/P&gt;&lt;P&gt;From $(vFile);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;From $(vFile);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 13:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-Issue/m-p/731757#M262072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-15T13:44:57Z</dc:date>
    </item>
  </channel>
</rss>

