<?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 detect a missing month in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-detect-a-missing-month-in-script/m-p/729753#M670577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may find this useful:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.qlikviewaddict.com/2012/02/checking-file-exists.html"&gt;http://www.qlikviewaddict.com/2012/02/checking-file-exists.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 11:57:59 GMT</pubDate>
    <dc:creator>martyn_birzys</dc:creator>
    <dc:date>2014-10-15T11:57:59Z</dc:date>
    <item>
      <title>How to detect a missing month in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-detect-a-missing-month-in-script/m-p/729751#M670575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've a problem i'd like you to help me to solve: i've 3 different sources to use to import data:&lt;/P&gt;&lt;P&gt;- an excel for the current month: A.xls&lt;/P&gt;&lt;P&gt;- 12 file for the previous 12 months: yearmonth_B.xls&lt;/P&gt;&lt;P&gt;- in case of lack of the previous month, i've a further excel file. C.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance: today my A file is 201410.xls, if I can't find B file 201409.xls 'ive to use C.xls&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created 2 variables:&lt;/P&gt;&lt;P&gt;let vMonthMax=peek('Month',0,tmp)&lt;/P&gt;&lt;P&gt;let vMonthPrec=peek('Month_prec',0,tmp)&lt;/P&gt;&lt;P&gt;but i've no idea how to put the condition to check if there is file B. Can you help me?&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-detect-a-missing-month-in-script/m-p/729751#M670575</guid>
      <dc:creator>canmarroig</dc:creator>
      <dc:date>2014-10-15T08:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a missing month in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-detect-a-missing-month-in-script/m-p/729752#M670576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;you can use the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; isnull(FileTime($(vMonthPrec) &amp;amp; '.xls')) then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load from c.xls&lt;/P&gt;&lt;P&gt;else load from B.xls&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 09:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-detect-a-missing-month-in-script/m-p/729752#M670576</guid>
      <dc:creator />
      <dc:date>2014-10-15T09:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a missing month in script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-detect-a-missing-month-in-script/m-p/729753#M670577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may find this useful:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.qlikviewaddict.com/2012/02/checking-file-exists.html"&gt;http://www.qlikviewaddict.com/2012/02/checking-file-exists.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 11:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-detect-a-missing-month-in-script/m-p/729753#M670577</guid>
      <dc:creator>martyn_birzys</dc:creator>
      <dc:date>2014-10-15T11:57:59Z</dc:date>
    </item>
  </channel>
</rss>

