<?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: Loop Counter Value Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962079#M649611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; I just wanted to implement this in the script level instead of using set expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2015 18:57:42 GMT</pubDate>
    <dc:creator>Vinothishere</dc:creator>
    <dc:date>2015-08-25T18:57:42Z</dc:date>
    <item>
      <title>Loop Counter Value Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962073#M649605</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;&amp;nbsp; I am trying to creating a new calendar which associates next three months dates for a current month.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Ex: Aug month associated to Sep,Oct and Nov dates similarly Sep associated to Oct,Nov and Dec dates and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For creating this, the loop counter value should be sum of number of days in next three months as per my understanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt; so how to calculate the "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;sum of number of days in next three months"&amp;nbsp; in the while statement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i.e while iterno()&amp;lt;= Calculation condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 07:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962073#M649605</guid>
      <dc:creator>Vinothishere</dc:creator>
      <dc:date>2015-08-20T07:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Counter Value Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962074#M649606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthEnd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),3)))) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MonthStart&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),1))) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 08:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962074#M649606</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-08-20T08:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Counter Value Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962075#M649607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you might be able to do this using AddMonths to create Min and Max Dates and then use IntervalMatch to get what you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 08:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962075#M649607</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-20T08:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Counter Value Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962076#M649608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the following script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD MonthStart(AddMonths(MonthYear, 1)) as Start,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthEnd(AddMonths(MonthYear, 3)) as End,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthYear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD MonthName(Date#(MonthYear, 'MMM-YYYY')) as MonthYear;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Jan-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Feb-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mar-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Apr-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;May-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Jun-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Jul-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aug-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sep-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Oct-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Nov-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dec-2015&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load min(Start) as minDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(End) as maxDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let varMinDate = Num(Peek('minDate', 0, 'Temp'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let varMaxDate = Num(Peek('maxDate', 0, 'Temp'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Temp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempCalendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date($(varMinDate) + IterNo() - 1) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;While $(varMinDate) + IterNo() -1 &amp;lt;= $(varMaxDate);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Left Join (Table)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IntervalMatch (Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Start,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; End&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 08:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962076#M649608</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-20T08:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Counter Value Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962077#M649609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you trying this? You might be able to compare 4 consecutive months using a set expression instead of some special calendar fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 17:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962077#M649609</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-08-20T17:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Counter Value Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962078#M649610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like Below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While IterNo() &amp;lt;= AddMonths(MonthStart(Today()),3) - Today() + 1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 19:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962078#M649610</guid>
      <dc:creator />
      <dc:date>2015-08-20T19:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Counter Value Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962079#M649611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; I just wanted to implement this in the script level instead of using set expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 18:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962079#M649611</guid>
      <dc:creator>Vinothishere</dc:creator>
      <dc:date>2015-08-25T18:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Counter Value Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962080#M649612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alessandro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 18:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962080#M649612</guid>
      <dc:creator>Vinothishere</dc:creator>
      <dc:date>2015-08-25T18:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Counter Value Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962081#M649613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 18:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962081#M649613</guid>
      <dc:creator>Vinothishere</dc:creator>
      <dc:date>2015-08-25T18:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loop Counter Value Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962082#M649616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you dathu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 18:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-Counter-Value-Calculation/m-p/962082#M649616</guid>
      <dc:creator>Vinothishere</dc:creator>
      <dc:date>2015-08-25T18:59:11Z</dc:date>
    </item>
  </channel>
</rss>

