<?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 Prior Year by selected Month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-Prior-Year-by-selected-Month/m-p/673427#M676629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Valdi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you want &lt;STRONG&gt;sum(&lt;/STRONG&gt;one-year data&lt;STRONG&gt;) &lt;/STRONG&gt;of prior year of current selection, and the following one works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$1 &amp;lt;Year={'&amp;lt;=$(=(max(Year)-1))'}, Month=,[Date] = {'&amp;lt;=$(=AddYears(max([Date]),-1))&amp;gt;=$(=Addmonths(max([Date]),-23))'}&amp;gt;} [Field])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 11:39:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-13T11:39:48Z</dc:date>
    <item>
      <title>Calculation Prior Year by selected Month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Prior-Year-by-selected-Month/m-p/673425#M676625</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;Please help me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write script, if I want to see prior year by selected Month.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;If I click Year 2014 and Month May then Summary Jun12-May13&lt;/P&gt;&lt;P&gt;If I click Year 2014 and Month April then summary May12-Apr13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I've script YTD : sum({&amp;lt;YEAR=, MONTH=, DATE={"&amp;gt;=$(MonthStart(Max(Date),-11))&amp;lt;=$(=Max(Date))"},[Field].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 02:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Prior-Year-by-selected-Month/m-p/673425#M676625</guid>
      <dc:creator />
      <dc:date>2014-06-13T02:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Prior Year by selected Month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Prior-Year-by-selected-Month/m-p/673426#M676626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somebody help me... (T_T)....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 02:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Prior-Year-by-selected-Month/m-p/673426#M676626</guid>
      <dc:creator />
      <dc:date>2014-06-13T02:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Prior Year by selected Month</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Prior-Year-by-selected-Month/m-p/673427#M676629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Valdi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you want &lt;STRONG&gt;sum(&lt;/STRONG&gt;one-year data&lt;STRONG&gt;) &lt;/STRONG&gt;of prior year of current selection, and the following one works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$1 &amp;lt;Year={'&amp;lt;=$(=(max(Year)-1))'}, Month=,[Date] = {'&amp;lt;=$(=AddYears(max([Date]),-1))&amp;gt;=$(=Addmonths(max([Date]),-23))'}&amp;gt;} [Field])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 11:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Prior-Year-by-selected-Month/m-p/673427#M676629</guid>
      <dc:creator />
      <dc:date>2014-06-13T11:39:48Z</dc:date>
    </item>
  </channel>
</rss>

