<?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: Calculation YTD by month selected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664545#M676968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was try your script, but the numbers accumulate all previous year 2013-2009.&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;I have a script :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: blue; font-size: 11pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: black; font-size: 11pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: maroon; font-size: 11pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: black; font-size: 11pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: maroon; font-size: 11pt;"&gt;"&amp;gt;$(=addmonths(DATE,-24)) &amp;lt;=$(=addmonths(DATE&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: red; font-size: 11pt;"&gt;,-12))"}, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: maroon; font-size: 11pt;"&gt;YEAR&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: black; font-size: 11pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: maroon; font-size: 11pt;"&gt;MONTH&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: black; font-size: 11pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: black; font-size: 11pt;"&gt;&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: maroon; font-size: 11pt;"&gt;AMOUNT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think the script is true, because when I checked this script accumulate 12 months of Previous Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, Thanks Sir Jagan...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jun 2014 10:06:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-17T10:06:17Z</dc:date>
    <item>
      <title>Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664522#M676945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write script, if I want to calculate YTD by month selected.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;if I selected year 2014 and month may then accumulation (Jun13 - May14)&lt;/P&gt;&lt;P&gt;or if I selected year 2014 and month apr then accumulation (May13 - Apr 14)&lt;/P&gt;&lt;P&gt;or if I selected year 2013 and month jun then accumulation (Jul12 - Jun13)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 04:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664522#M676945</guid>
      <dc:creator />
      <dc:date>2014-06-12T04:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664523#M676946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try somthig like in Expressions:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date={"&amp;gt;=$(=AddMonths(Max(Date),-11)) &amp;lt;=$(=Max(Date))"} &amp;gt;} [Measure Field] )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 05:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664523#M676946</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2014-06-12T05:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664524#M676947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Valdi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year={'$(vMaxYear)'},Date={'&amp;lt;=$(vMaxDate)'},Month=,Day=,MonthYear=&amp;gt;} MeasureField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxYear = max(Year)&lt;/P&gt;&lt;P&gt;vMaxDate = max(Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Rishi Beri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 05:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664524#M676947</guid>
      <dc:creator />
      <dc:date>2014-06-12T05:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664525#M676948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rishi.&lt;/P&gt;&lt;P&gt;If you set Year as Max(Year) how do you get Previous Year data. This expression calculate data of a perticular year to till date.&lt;/P&gt;&lt;P&gt;Ex if you select year 2014 and month Jun then you would get data of 01-Jan-14 to 30-Jun-14. but the Valdi's requirement is different what you have thought.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 06:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664525#M676948</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2014-06-12T06:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664526#M676949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradip&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For previous year calculation you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year={'$(vPriorYear)'},Month=,Day=,Date={'&amp;lt;=$(vPriorYearDate)'},MonthYear=&amp;gt;} MeasureField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxYear = max(Year)&lt;/P&gt;&lt;P&gt;vPriorYear = vMaxYear -1&lt;/P&gt;&lt;P&gt;vPriorYearDate = date(addyears(max(Date), -1), 'DD MMM YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rishi Beri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 06:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664526#M676949</guid>
      <dc:creator />
      <dc:date>2014-06-12T06:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664527#M676950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'v tried your script, but only accumulate 1 month not 12 months,&lt;/P&gt;&lt;P&gt;sum({Date= &amp;lt;--- Date or Months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 06:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664527#M676950</guid>
      <dc:creator />
      <dc:date>2014-06-12T06:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664528#M676951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thing you have just misunderstood the actual requirement. Valdi&amp;nbsp; wants if anyone selects year 2014 and month May then accumulation should be from Jun13 to May14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get the desired result by using following expressions what you have suggested?&lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;Year={'$(vMaxYear)'},Date={'&amp;lt;=$(vMaxDate)'},Month=,Day=,MonthYear=&amp;gt;} MeasureField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMaxYear = max(Year)&lt;/P&gt;&lt;P&gt;vMaxDate = max(Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 06:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664528#M676951</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2014-06-12T06:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664529#M676952</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;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=Sum({&amp;lt;Year=, Month=, Date={"&amp;gt;=$(=MonthStart(Max(Date),-12)) &amp;lt;=$(=Max(Date))"} &amp;gt;} [Measure Field] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Replace &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Year=, Month=, Date=&lt;/SPAN&gt; with your actual field names.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 06:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664529#M676952</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-12T06:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664530#M676953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,,&lt;/P&gt;&lt;P&gt;I've tried your script, but the result is the difference..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 07:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664530#M676953</guid>
      <dc:creator />
      <dc:date>2014-06-12T07:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664531#M676954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 07:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664531#M676954</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2014-06-12T07:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664532#M676955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well Done, &lt;/P&gt;&lt;P&gt;I've tried, &lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year=, Month=, Date={"&amp;gt;=$(=MonthStart(Max(Date),-11))&amp;lt;=$(=Max(Date))"}&amp;gt;} [Measure Field])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 07:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664532#M676955</guid>
      <dc:creator />
      <dc:date>2014-06-12T07:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664533#M676956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;=Sum({&amp;lt;Year=, Month=, Date={"&amp;gt;=$(=MonthStart(Max(Date),-12)) &amp;lt;=$(=Date(Max(Date)))"} &amp;gt;} [Measure Field] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Replace &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Year=, Month=, Date=&lt;/SPAN&gt; with your actual field names.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Jagan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 07:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664533#M676956</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-12T07:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664534#M676957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=SUM({&amp;lt;YearMonth={'&amp;gt;=$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VminYear&lt;/SPAN&gt;) &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VmaxYear &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;)&lt;/SPAN&gt;'}&amp;gt;}&amp;nbsp; Measure)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VmaxYear = GetFieldSelections(Year) &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;GetFieldSelections(Month)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VminYear = Date(Addmonths(Date#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;VmaxYear &lt;/SPAN&gt;,'YYYYMM'),-11),'YYYYMM')&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 07:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664534#M676957</guid>
      <dc:creator />
      <dc:date>2014-06-12T07:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664535#M676958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 07:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664535#M676958</guid>
      <dc:creator>senpradip007</dc:creator>
      <dc:date>2014-06-12T07:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664536#M676959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I use a script -12 then accumulated to 13 months, but if I use the script -11 then accumulated to 12 months (correct).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 07:47:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664536#M676959</guid>
      <dc:creator />
      <dc:date>2014-06-12T07:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664537#M676960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Valdi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 07:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664537#M676960</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-12T07:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664538#M676961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help, how to write script if I want to see Prior Year with script YTD:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Year=, Month=, Date={"&amp;gt;=$(=MonthStart(Max(Date),-11))&amp;lt;=$(=Date(Max(Date)))"}&amp;gt;}[Measure Field])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 09:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664538#M676961</guid>
      <dc:creator />
      <dc:date>2014-06-12T09:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664539#M676962</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;This will give you the sum of measure for the last 12 months.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;=sum({&amp;lt;Year=, Month=, Date={"&amp;gt;=$(=MonthStart(Max(Date),-11))&amp;lt;=$(=Date(Max(Date)))"}&amp;gt;}[Measure Field])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, your max date is jun-2014, then the above exp will you sum of Measure for Jul-2013 to Jun-2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 05:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664539#M676962</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-17T05:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664540#M676963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about sum Previous Year?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 06:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664540#M676963</guid>
      <dc:creator />
      <dc:date>2014-06-17T06:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation YTD by month selected</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664541#M676964</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;If you want from Jan-13 - Dec-13, then use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;=sum({&amp;lt;Year=, Month=, Date={"&amp;gt;=$(=YearStart(Max(Date),-1))&amp;lt;=$(=YearEnd(Max(Date), -1))"}&amp;gt;}[Measure Field])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 06:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-YTD-by-month-selected/m-p/664541#M676964</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-06-17T06:33:24Z</dc:date>
    </item>
  </channel>
</rss>

