<?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 Copying October's YTD value for November &amp; December in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Copying-October-s-YTD-value-for-November-December/m-p/392292#M1160695</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;I have an expression which calculates the YTD value as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum({$&amp;lt;YEAR={$(vMaxYear)},MONTH_NO={'&amp;lt;=$(vMaxMonth)'}, MONTH=&amp;gt;}ABC_Flag)/sum({$&amp;lt;YEAR={$(vMaxYear)},MONTH_NO={'&amp;lt;=$(vMaxMonth)'}, MONTH=&amp;gt;}Total_Flag),'#,##0.0%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH is a list box in the document and the YTD changes based on the MONTH selected. MONTH='Sep' or any other month before Sep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly fine. Here vMaxYear=2012, vMaxMonth=max(MONTH_NO) where MONTH_NO is 9 if 'Sep' is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want this expression to show September's value when I select Oct/Nov/Dec as MONTH&lt;/STRONG&gt;. I mean my values are freezed till Sep, and this expression should only evaluate to YTD(Sep) value even if I select Oct/Nov/Dec from the list box. Please guide me how to do this. I can't really find a way. The Monthly value for the same expression for the month of October/November/December can be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would appreciate all help at the earliest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tutan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2012 19:31:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-29T19:31:40Z</dc:date>
    <item>
      <title>Copying October's YTD value for November &amp; December</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-October-s-YTD-value-for-November-December/m-p/392292#M1160695</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;I have an expression which calculates the YTD value as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(sum({$&amp;lt;YEAR={$(vMaxYear)},MONTH_NO={'&amp;lt;=$(vMaxMonth)'}, MONTH=&amp;gt;}ABC_Flag)/sum({$&amp;lt;YEAR={$(vMaxYear)},MONTH_NO={'&amp;lt;=$(vMaxMonth)'}, MONTH=&amp;gt;}Total_Flag),'#,##0.0%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MONTH is a list box in the document and the YTD changes based on the MONTH selected. MONTH='Sep' or any other month before Sep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly fine. Here vMaxYear=2012, vMaxMonth=max(MONTH_NO) where MONTH_NO is 9 if 'Sep' is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I want this expression to show September's value when I select Oct/Nov/Dec as MONTH&lt;/STRONG&gt;. I mean my values are freezed till Sep, and this expression should only evaluate to YTD(Sep) value even if I select Oct/Nov/Dec from the list box. Please guide me how to do this. I can't really find a way. The Monthly value for the same expression for the month of October/November/December can be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would appreciate all help at the earliest. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tutan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 19:31:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-October-s-YTD-value-for-November-December/m-p/392292#M1160695</guid>
      <dc:creator />
      <dc:date>2012-11-29T19:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Copying October's YTD value for November &amp; December</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-October-s-YTD-value-for-November-December/m-p/392293#M1160696</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; May be try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxMonth&amp;nbsp; &lt;/P&gt;&lt;P&gt;value:&lt;/P&gt;&lt;P&gt;= if(wildmatch(Month,'oct','nov','dec'),9,max(Month_NO))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 19:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-October-s-YTD-value-for-November-December/m-p/392293#M1160696</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-29T19:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Copying October's YTD value for November &amp; December</title>
      <link>https://community.qlik.com/t5/QlikView/Copying-October-s-YTD-value-for-November-December/m-p/392294#M1160697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your vMaxMonth variable value as &lt;STRONG&gt;NumMin(Month(Today()),Max(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Month_NO&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be specific of completed months &lt;STRONG&gt;NumMin(Month(If(Today()&amp;lt;MonthEnd(Today()),AddMonths(Today(),-1), Today())),Max(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Month_NO&lt;/SPAN&gt;))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 20:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copying-October-s-YTD-value-for-November-December/m-p/392294#M1160697</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-11-29T20:13:35Z</dc:date>
    </item>
  </channel>
</rss>

