<?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 For Next Loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269633#M499389</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;&amp;nbsp; As &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/krishnamoorthy" id="jive-382705728996674236096" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;krishnamoorthy&lt;/A&gt; said, the looping can not be done in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; There is no matrix available like you shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Why you want to use for loop in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Provide us your problem definition, may be there are some other solution available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2011 06:15:01 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2011-07-11T06:15:01Z</dc:date>
    <item>
      <title>For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269630#M499386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The below expression is not working, please help?&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;=(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;LoadDate_Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Let&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; c=&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;for&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; a = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;LoadDate_Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;to&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt; &lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;step&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; -&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 1in; text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Let&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; c = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #646464; font-size: 9pt; font-family: 'Courier New';"&gt;$(c)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; + &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;AIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {P}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Bucket_MOM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;6&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;next&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in; text-indent: 0.5in;"&gt;&lt;STRONG&gt;&lt;EM style="color: #646464; font-size: 9pt; font-family: 'Courier New';"&gt;$(c)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in; text-indent: 0.5in;"&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Courier New';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;AIF&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {P}, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;Bucket_MOM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;0&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;4&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;6&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Courier New';"&gt;bal&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;/(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;100&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;*&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Courier New';"&gt;1000000&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2011 13:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269630#M499386</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-07-10T13:24:55Z</dc:date>
    </item>
    <item>
      <title>For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269631#M499387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you using this expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set expressions do not work in load script and for ...next loop is not available in chart expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jul 2011 17:16:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269631#M499387</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-07-10T17:16:48Z</dc:date>
    </item>
    <item>
      <title>For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269632#M499388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any alternate of "For..Next" loop in chart expression? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there ne matrix for all these details I mean something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 408px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="129"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="82"&gt;Load Script&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="89"&gt;Expression&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="108"&gt;Macro (vbscript)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: medium none;"&gt;For Next Loop&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;No&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: medium none;"&gt;Do While Loop&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;No&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="border-top: medium none;"&gt;Set &lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;No&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;"&gt;Yes&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 05:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269632#M499388</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-07-11T05:12:08Z</dc:date>
    </item>
    <item>
      <title>For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269633#M499389</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;&amp;nbsp; As &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/krishnamoorthy" id="jive-382705728996674236096" style="font-size: 12px; color: #007fc0; font-weight: bold;"&gt;krishnamoorthy&lt;/A&gt; said, the looping can not be done in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; There is no matrix available like you shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Why you want to use for loop in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Provide us your problem definition, may be there are some other solution available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 06:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269633#M499389</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-11T06:15:01Z</dc:date>
    </item>
    <item>
      <title>For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269634#M499390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I am looking for the sum of customer balances by year like if i select May-2011 then expression can sum all the values in 2011 before and in may-2011 excluding june-2011 onward. similarly with every month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I have to apply many nested If conditions like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;=(&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;if(Month(LoadDate_Active)=1&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;,sum({$&amp;lt;AIF = {P}, {$&amp;lt;MonthName_ID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: #646464; font-size: 9pt; font-family: &amp;amp;quot;"&gt;'$(=MonthName(LoadDate))'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;}, Bucket_MOM = {0,1,2,3,4,5,6}&amp;gt;} bal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;,if(Month(LoadDate_Active)=2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;sum({$&amp;lt;AIF = {P}, {$&amp;lt;MonthName_ID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: #646464; font-size: 9pt; font-family: &amp;amp;quot;"&gt;'$(=MonthName(LoadDate))'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;}, Bucket_MOM = {0,1,2,3,4,5,6}&amp;gt;} bal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;sum({$&amp;lt;AIF = {P}, {$&amp;lt;MonthName_ID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: #646464; font-size: 9pt; font-family: &amp;amp;quot;"&gt;'$(=MonthName(LoadDate,-1))'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;}, Bucket_MOM = {0,1,2,3,4,5,6}&amp;gt;} bal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;,if(Month(LoadDate_Active)=3,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;sum({$&amp;lt;AIF = {P}, {$&amp;lt;MonthName_ID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: #646464; font-size: 9pt; font-family: &amp;amp;quot;"&gt;'$(=MonthName(LoadDate))'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;}, Bucket_MOM = {0,1,2,3,4,5,6}&amp;gt;} bal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;sum({$&amp;lt;AIF = {P}, {$&amp;lt;MonthName_ID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: #646464; font-size: 9pt; font-family: &amp;amp;quot;"&gt;'$(=MonthName(LoadDate,-1))'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;}, Bucket_MOM = {0,1,2,3,4,5,6}&amp;gt;} bal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;sum({$&amp;lt;AIF = {P}, {$&amp;lt;MonthName_ID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: #646464; font-size: 9pt; font-family: &amp;amp;quot;"&gt;'$(=MonthName(LoadDate,-2))'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;}, Bucket_MOM = {0,1,2,3,4,5,6}&amp;gt;} bal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;..&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;.... till the twelve months&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;,if(Month(LoadDate_Active)=12,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;sum({$&amp;lt;AIF = {P}, {$&amp;lt;MonthName_ID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: #646464; font-size: 9pt; font-family: &amp;amp;quot;"&gt;'$(=MonthName(LoadDate))'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;}, Bucket_MOM = {0,1,2,3,4,5,6}&amp;gt;} bal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;sum({$&amp;lt;AIF = {P}, {$&amp;lt;MonthName_ID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: #646464; font-size: 9pt; font-family: &amp;amp;quot;"&gt;'$(=MonthName(LoadDate,-1))'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;}, Bucket_MOM = {0,1,2,3,4,5,6}&amp;gt;} bal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;..&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;sum({$&amp;lt;AIF = {P}, {$&amp;lt;MonthName_ID = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; Courier New&amp;amp;quot: ; color: #646464; font-size: 9pt; font-family: &amp;amp;quot;"&gt;'$(=MonthName(LoadDate,-11))'&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;}, Bucket_MOM = {0,1,2,3,4,5,6}&amp;gt;} bal)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;SPAN style="font-family: &amp;amp;quot;Courier New&amp;amp;quot;; color: black; font-size: 9pt;"&gt;/(100*1000000)&lt;SPAN style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0in 0in 10pt;"&gt;&lt;SPAN style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 06:32:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269634#M499390</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-07-11T06:32:31Z</dc:date>
    </item>
    <item>
      <title>For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269635#M499391</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;&amp;nbsp; Let me say what i understood from this is that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; when you select May-2011, you want data from Jan-2011 till May-2011.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Am i right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 06:40:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269635#M499391</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-11T06:40:56Z</dc:date>
    </item>
    <item>
      <title>For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269636#M499392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally it is really not recommende to use to many nested IF statements, since this can have serious impact on the application performance. You are much better of if you can find a solution using set analysis and/or Aggr().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An other option can be to do some additonal calculations in the load script, so that parts are statically precalculated and only needs to be sumed in the expression. This would be of some performance gain in case you run larger data volumes or a slower machine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be easier to advise on a good approach if you attach a sample of you solution, so that the data model can be evaluated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 07:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269636#M499392</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-07-11T07:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269637#M499393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes exactly you are right kaushik!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply Toni, I am attaching one sample of my project. I am having problem on disabled field COF Final... Please see it on expression tab and if you have any solution then let me know... Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 10:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269637#M499393</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-07-11T10:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269638#M499394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a solution but i cant seem to upload to the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;send me&amp;nbsp; your email and i wil send the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try somehting like this in your script&lt;/P&gt;&lt;P&gt;I use it&amp;nbsp; together with a calendar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used these with set analysis to calculate some expressions in my chart(i.e. YTD,MTD,WTD...etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(M&amp;gt;3,Y+1,Y)as FinYear,&lt;/P&gt;&lt;P&gt;NUM(IF(M&amp;gt;3,Month(AddMonths(D,-3)),Month(AddMonths(D,9))),'00')as FinMonth,&lt;/P&gt;&lt;P&gt;YearName(D,0,4) as FinPeriod,&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(Month(addmonths(D,-3))/3) as Quarter,&lt;/P&gt;&lt;P&gt;NUM(IF(M&amp;gt;3,Y+1,Y)&amp;amp; Ceil(Month(addmonths(D,-3))/3),'00') as FinYearQuarter,&lt;/P&gt;&lt;P&gt;IF(M&amp;gt;3,Y+1,Y) &amp;amp; NUM(IF(M&amp;gt;3,Month(AddMonths(D,-3)),Month(AddMonths(D,9))),'00') as FinYearMonth,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 20:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269638#M499394</guid>
      <dc:creator>shaunsomai</dc:creator>
      <dc:date>2011-07-11T20:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269639#M499395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I may be missing something but is this not a simple pivot with Months as the dimension along the top and then Set Analysis in the expression to limit to the max year and months prior to the max selected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(vMaxYear)},Date={'&amp;lt;=$(vMaxDate)'},Month=&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also attached an example that may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By extending the example to also be aware of the Prior year you could put in a YTD prior year comparison with variances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- &lt;A class="active_link" href="http://www.quickintelligence.co.uk/"&gt;Steve&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 22:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269639#M499395</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-07-11T22:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269640#M499396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your helpful response and the attached example. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; it resolves one part of my problem &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the thing is i wanted to do the average of these values by month &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like if the selected month is july 2011 in your example &lt;/P&gt;&lt;P&gt;then average should be the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum of values of each month divided by 7 i.e. 13,782.86. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="603"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="60"&gt;Value&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="60"&gt;Jan&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="60"&gt;Feb&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="60"&gt;Mar&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="60"&gt;Apr&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="60"&gt;May&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="60"&gt;Jun&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="60"&gt;Jul&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none;" width="60"&gt;Total &lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="63"&gt;Average&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top: medium none;" width="60"&gt;Total &lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none; border-left: medium none;" width="60"&gt;18,238.00 &lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none; border-left: medium none;" width="60"&gt;15,172.00 &lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none; border-left: medium none;" width="60"&gt;17,612.00 &lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none; border-left: medium none;" width="60"&gt;14,284.00 &lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none; border-left: medium none;" width="60"&gt;12,064.00 &lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none; border-left: medium none;" width="60"&gt;13,854.00 &lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none; border-left: medium none;" width="60"&gt;&amp;nbsp;&amp;nbsp; 5,256.00 &lt;/TD&gt;&lt;TD class="xl67" style="border-top: medium none; border-left: medium none;" width="60"&gt;96,480.00 &lt;/TD&gt;&lt;TD class="xl68" style="border-top: medium none; border-left: medium none;"&gt;&amp;nbsp; 13,782.86 &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the sum of each row / number of rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shumail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shaun my email is &lt;A href="mailto:shumail.hussain@fgb.ae"&gt;shumail.hussain@fgb.ae&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 10:41:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269640#M499396</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-07-13T10:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269641#M499397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the possible way is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: #5a005a; font-family: 'Arial','sans-serif';"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Arial','sans-serif';"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Arial','sans-serif';"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Arial','sans-serif';"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #646464; font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;$(vMaxYear)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Arial','sans-serif';"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Arial','sans-serif';"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Arial','sans-serif';"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #4d0000; font-family: 'Arial','sans-serif';"&gt;'&amp;lt;=$(vMaxDate)'&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Arial','sans-serif';"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Arial','sans-serif';"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Arial','sans-serif';"&gt;=&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Arial','sans-serif';"&gt;Value&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Arial','sans-serif';"&gt;)/&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: #004d00; font-family: 'Arial','sans-serif';"&gt;vMaxMonth &lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;divide the expression with number of months&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 11:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269641#M499397</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-07-13T11:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269642#M499398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That looks like it should work, but will divide every month by the number of months - so your average will be correct but not the monthly columns.&amp;nbsp; The other thing that would not be as your example above is having both a Total and an Average column.&amp;nbsp; This is not easy (possible?) in a pivot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you could do is change it to a straight table and have a separate expression for each month, and then separate expressions for the Total and Average fields.&amp;nbsp; You could then change the background and text settings for those expressions to make it clear they are totals.&amp;nbsp; Finally you would need to conditionally show or hide the months (unless you wanted to show the zero future months).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added another tab to my example showing the straight table approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 23:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269642#M499398</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-07-13T23:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269643#M499399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've uploaded the example as a Shared QlikView - if you download it from there it is Personal Edition enabled:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/qlikviews/http://community.qlik.com/qlikviews/1113"&gt;http://community.qlik.com/qlikviews/1113&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 20:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269643#M499399</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2011-07-18T20:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269644#M499400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying for the year to date in pivote table, but I am getting no data in the pivot table.I am attaching my qv file can you please verify and reply back&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 19:01:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269644#M499400</guid>
      <dc:creator />
      <dc:date>2012-10-03T19:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269645#M499401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the post, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 05:59:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269645#M499401</guid>
      <dc:creator />
      <dc:date>2013-10-23T05:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269646#M499402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day , I want to up date the , &lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/download/132639-18439/Simple Year To Date Example.qvw" style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7; text-decoration: underline; background-color: #fdfdfd;"&gt;Simple Year To Date Example.qvw&lt;/A&gt; to current year it just stop to 2011 , please help urgently ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 06:25:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269646#M499402</guid>
      <dc:creator />
      <dc:date>2014-09-03T06:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269647#M499403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is autogenerated based on the current date.&amp;nbsp; Just do a reload and it should bring you right up to date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just noticed the download link I posted previously has broken, the app can now be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4321"&gt;QlikView App: Simple Year To Date Example (Set Analysis)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 06:37:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/269647#M499403</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2014-09-03T06:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: For Next Loop</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/1511830#M499404</link>
      <description>&lt;P&gt;With the latest update it's now moved to here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/QlikView-App-Simple-Year-To-Date-Example-Set-Analysis/ta-p/1482919" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/QlikView-App-Simple-Year-To-Date-Example-Set-Analysis/ta-p/1482919&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Nov 2018 15:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop/m-p/1511830#M499404</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2018-11-24T15:17:48Z</dc:date>
    </item>
  </channel>
</rss>

