<?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 Variables in a for Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-in-a-for-Loop/m-p/216096#M500086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Fernando,&lt;/P&gt;&lt;P&gt;That was easy. Thanks! Sometime small things are overseen, I am trying on this.&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/44199.aspx&lt;/P&gt;&lt;P&gt;can you help me realise?&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2011 09:37:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-15T09:37:22Z</dc:date>
    <item>
      <title>Variables in a for Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-a-for-Loop/m-p/216094#M500084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi I have two variables&lt;/P&gt;&lt;P&gt;Let vCurWeek = replace(WeekName(Today()), '/', '');&lt;BR /&gt;Let vLastWeek = Replace(WeekName(Today()-7), '/', '');&lt;/P&gt;&lt;P&gt;which gives me vCurWeek=201115 and vLastWeek=201114&lt;/P&gt;&lt;P&gt;now I want a loop&lt;/P&gt;&lt;P&gt;For i= 0 to 'End of period'&lt;/P&gt;&lt;P&gt;That means for Example if I consider 4 weeks[201114-201117)&lt;/P&gt;&lt;P&gt;How to use that variable in a loop like&lt;/P&gt;&lt;P&gt;For i= 0 to ($(vLastWeek)+4)-1&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Next i&lt;/P&gt;&lt;P&gt;This does not work. Any idea?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 14:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-a-for-Loop/m-p/216094#M500084</guid>
      <dc:creator />
      <dc:date>2011-04-14T14:19:33Z</dc:date>
    </item>
    <item>
      <title>Variables in a for Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-a-for-Loop/m-p/216095#M500085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Hi Sravan,&lt;/P&gt;&lt;P&gt;I'm not sure if I understood you, but the solution seems to be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i= $(vLastWeek) to ($(vLastWeek)+3)&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;Next i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you need?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 17:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-a-for-Loop/m-p/216095#M500085</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-04-14T17:24:16Z</dc:date>
    </item>
    <item>
      <title>Variables in a for Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-a-for-Loop/m-p/216096#M500086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Fernando,&lt;/P&gt;&lt;P&gt;That was easy. Thanks! Sometime small things are overseen, I am trying on this.&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/44199.aspx&lt;/P&gt;&lt;P&gt;can you help me realise?&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 09:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-a-for-Loop/m-p/216096#M500086</guid>
      <dc:creator />
      <dc:date>2011-04-15T09:37:22Z</dc:date>
    </item>
    <item>
      <title>Variables in a for Loop</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-in-a-for-Loop/m-p/216097#M500087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sravan,&lt;/P&gt;&lt;P&gt;glad to help.&lt;/P&gt;&lt;P&gt;One thing you must have in mind is when your end of period goes to the next year.&lt;/P&gt;&lt;P&gt;For example 201150 to 201202. The for loop wont work correctly, and you'll need no treat these situations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 11:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-in-a-for-Loop/m-p/216097#M500087</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-04-15T11:50:51Z</dc:date>
    </item>
  </channel>
</rss>

