<?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: [ASK] if-else looping load with multiple condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255377#M625959</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;I've added TRACE function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thx for the quick response &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Nov 2016 15:43:31 GMT</pubDate>
    <dc:creator>rendiyan</dc:creator>
    <dc:date>2016-11-30T15:43:31Z</dc:date>
    <item>
      <title>[ASK] if-else looping load with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255372#M625954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlik Master,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a user with huge data.&lt;/P&gt;&lt;P&gt;I have 1 transaction that i need to load partially every year.&lt;/P&gt;&lt;P&gt;And &lt;SPAN style="font-size: 13.3333px;"&gt;loaded &lt;/SPAN&gt;before current year data only need to load 1 time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i create a looping load with multiple condition, and my script is below&amp;nbsp; :&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Load Script&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;FOR nrow = 0 TO 2&lt;/P&gt;&lt;P&gt;LET vYear = year(today())-$(nrow);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vTable = F_REVBYTYPE_$(vYear);&lt;/P&gt;&lt;P&gt;set QVDFILE_max = $(vTable).qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF '$(vYear)'=year(today()) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vTable):&lt;/P&gt;&lt;P&gt;sql select *&lt;/P&gt;&lt;P&gt;from abc&lt;/P&gt;&lt;P&gt;where abc.date=$(vYear);&lt;/P&gt;&lt;P&gt;STORE * from $(vTable) into $(vTable).qvd (qvd);&lt;/P&gt;&lt;P&gt;DROP TABLE $(vTable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF '$(vYear)'&amp;lt;&amp;gt;year(today()) and FileSize('$(QVDFILE_max)') = 0 THEN&lt;/P&gt;&lt;P&gt;sql select *&lt;/P&gt;&lt;P&gt;from abc&lt;/P&gt;&lt;P&gt;where abc.date=$(vYear);&lt;/P&gt;&lt;P&gt;STORE * from $(vTable) into $(vTable).qvd (qvd);&lt;/P&gt;&lt;P&gt;DROP TABLE $(vTable);&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;NEXT;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i got a problem, my load script never get to elseif condition.&lt;/P&gt;&lt;P&gt;Is there anything wrong with my script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because when i try with only if-else, it's going well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 14:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255372#M625954</guid>
      <dc:creator>rendiyan</dc:creator>
      <dc:date>2016-11-30T14:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] if-else looping load with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255373#M625955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHy do you need the elseif?&lt;/P&gt;&lt;P&gt;Surely you just need ELSE ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've not tried to use ELSEIF as a function (I nest IFs as below) so i could be wrong but is it missing an ENDIF and maybe it requires an ELSE to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I personally would use this and never have an issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF &amp;lt;condition&amp;gt; THEN &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement1 &lt;/P&gt;&lt;P&gt;ELSE &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF &amp;lt;condition2&amp;gt; THEN &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement2 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; statement3 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF &lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 15:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255373#M625955</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-11-30T15:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] if-else looping load with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255374#M625956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried it but it won't work, only ran the first if load script.&lt;/P&gt;&lt;P&gt;Script is below :&lt;/P&gt;&lt;P&gt;FOR nrow = 0 TO 2&lt;/P&gt;&lt;P&gt;LET vYear = year(today())-$(nrow);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set vTable = F_REVBYTYPE_$(vYear);&lt;/P&gt;&lt;P&gt;set QVDFILE_max = $(vTable).qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF '$(vYear)'= year(today()) then&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vTable):&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; YEAR&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vYear)'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;&amp;nbsp; STORE * from $(vTable) into $(vTable).qvd (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; DROP TABLE $(vTable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF FileSize('$(QVDFILE_max)') = 0 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vTable):&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; YEAR&lt;/P&gt;&lt;P&gt;&amp;nbsp; '$(vYear)'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;&amp;nbsp; STORE * from $(vTable) into $(vTable).qvd (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; DROP TABLE $(vTable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ELSE&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(vTable):&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp; BEFYEARDONE&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF;&lt;/P&gt;&lt;P&gt;ENDIF;&lt;/P&gt;&lt;P&gt;NEXT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 15:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255374#M625956</guid>
      <dc:creator>rendiyan</dc:creator>
      <dc:date>2016-11-30T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] if-else looping load with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255375#M625957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry your question now makes sense to me, I was looking at it incorrectly.&lt;/P&gt;&lt;P&gt;Your syntax seems completely fine to me, the only thing could be if the filesize test is coming up blank?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its worth adding some TRACE functions so you can see what is going on &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;FOR nrow = 0 TO 2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vYear = year(today())-$(nrow);&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;set vTable = F_REVBYTYPE_$(vYear);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;set QVDFILE_max = $(vTable).qvd;&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;TRACE $(vYear);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TRACE &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;FileSize('$(QVDFILE_max)') ;&lt;/SPAN&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;IF '$(vYear)'= year(today()) then&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; $(vTable):&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; YEAR&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; '$(vYear)'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; STORE * from $(vTable) into $(vTable).qvd (qvd);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DROP TABLE $(vTable);&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;ELSE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IF FileSize('$(QVDFILE_max)') = 0 then&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; $(vTable):&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; YEAR&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; '$(vYear)'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; STORE * from $(vTable) into $(vTable).qvd (qvd);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DROP TABLE $(vTable);&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;&amp;nbsp; ELSE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; $(vTable):&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; BEFYEARDONE&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&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ];&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;&amp;nbsp; ENDIF;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ENDIF;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEXT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 15:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255375#M625957</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-11-30T15:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] if-else looping load with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255376#M625958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually that is rubbish as you should still get your inline load.... maybe put the logfile on and share that so I can see what is going on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 15:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255376#M625958</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-11-30T15:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] if-else looping load with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255377#M625959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;I've added TRACE function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, thx for the quick response &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 15:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255377#M625959</guid>
      <dc:creator>rendiyan</dc:creator>
      <dc:date>2016-11-30T15:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] if-else looping load with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255378#M625960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect, yes it looks like it is the filesize it doesn't like to me... the years are switching fine but its obviously thinking the files are non existent or 0 size... I think it might be the syntax, give this a go, I have added a variable to call the filesize and then slightly changed the else which means if the file is null it will also load I believe. This obviously assumes the QVD are in the same folder as the QVW&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;FOR nrow = 0 TO 2&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vYear = year(today())-$(nrow);&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;set vTable = F_REVBYTYPE_$(vYear);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;set QVDFILE_max = $(vTable).qvd;&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;TRACE $(vYear);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style=": ; color: #ff0000;"&gt;let vFileSize = &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG style=": ; color: #ff0000;"&gt;FileSize('.\'&amp;amp;'$(QVDFILE_max)') ;&lt;/STRONG&gt;&lt;/SPAN&gt;&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;IF '$(vYear)'= year(today()) then&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; $(vTable):&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; YEAR&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; '$(vYear)'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; STORE * from $(vTable) into $(vTable).qvd (qvd);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DROP TABLE $(vTable);&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;ELSE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; IF &lt;STRONG style="color: #ff0000;"&gt;$(&lt;/STRONG&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #ff0000;"&gt;v&lt;/STRONG&gt;FileSize)&lt;/STRONG&gt;&lt;STRONG style="color: #ff0000;"&gt; &amp;lt; 1&lt;/STRONG&gt; then &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; $(vTable):&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; YEAR&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; '$(vYear)'&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; STORE * from $(vTable) into $(vTable).qvd (qvd);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DROP TABLE $(vTable);&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;&amp;nbsp; ELSE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; $(vTable):&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; BEFYEARDONE&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&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ];&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;&amp;nbsp; ENDIF;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ENDIF;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEXT;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:25:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255378#M625960</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-01T07:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] if-else looping load with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255379#M625961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still won't work.&lt;/P&gt;&lt;P&gt;i dont know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx anyway &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 19:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255379#M625961</guid>
      <dc:creator>rendiyan</dc:creator>
      <dc:date>2016-12-02T19:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: [ASK] if-else looping load with multiple condition</title>
      <link>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255380#M625962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share the latest log? &lt;/P&gt;&lt;P&gt;Maybe add a trace on filesize as well&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 07:22:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ASK-if-else-looping-load-with-multiple-condition/m-p/1255380#M625962</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2016-12-05T07:22:33Z</dc:date>
    </item>
  </channel>
</rss>

